I m trying to compare 2 files with their exif date attribut: with this:
var ExifImage = require('exif').ExifImage;
function exify(name){
var results
new ExifImage({ image : name }, function (error, exifData) {
if (error){
console.log("error");
}
else {
results = exifData.image.ModifyDate;
console.log(results);
return results;
}
});
}
console.log(exify("IMG_0093.jpg"));
The console.log from the function is ok with a date but the function returns undefined not the value of results
Any idea