We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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); } }); }
The text was updated successfully, but these errors were encountered:
This is my typescript-ready version of it
import Exif, { ExifImage } from 'exif'; function ExifPromise(path: string | Buffer): Promise<Exif.ExifData> { 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); } }); }
Sorry, something went wrong.
I came here to create a promise request and BOOM it's the top issue.
Hey just a heads up. It turns out this package reads the whole image and is very slow. I am now using fast-exif package.
fast-exif
No branches or pull requests
It would be nice to have a promisified version of the function. For now, I use this:
The text was updated successfully, but these errors were encountered: