It would be nice to have a promisified version of the function. For now, I use this:
function ExifPromise(path) {
return new Promise(function (resolve, reject) {
try {
new ExifImage({ image: path }, function (error, exifData) {
if (error)
reject(error);
else
resolve(exifData);
});
} catch (error) {
reject(error);
}
});
}
It would be nice to have a promisified version of the function. For now, I use this: