-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
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
data: buffer should start with "Exif" #11
Comments
Hello, the EXIF data must be extracted from the JPEG image first. For the image above try something like: const sharp = require('sharp');
const exifReader = require('exif-reader');
sharp('56497304-40e89a80-64fd-11e9-9684-ee95b5d58567.JPG')
.metadata()
.then(({ exif }) => {
const exifProperties = exifReader(exif);
console.log(exifProperties);
}); which outputs:
|
This bit me as well. @lovell I believe it would make a lot of sense to include this functionality by default as the other libraries do as it's the standard use case for most. Thoughts? |
So, sharp depends on this module and this module requires sharp to work? That's a bit bizarre, imho. |
|
@lovell thanks for clarifying that, I ended up using both sharp and exiftool a part, as it seems to be the standard. I might have a second look at this module though, since it works fine via sharp metadata. |
trying to read a buffer created using:
var exifreader = Npm.require('exif-reader');
var buf = Buffer.from(fileObj.blob, 'binary');
var meta = exifreader(buf);
The text was updated successfully, but these errors were encountered: