-
Notifications
You must be signed in to change notification settings - Fork 484
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
Extracting embedded JPEG from Nikon NEF #262
Comments
With these two values, you should be able to extract the thumbnail from the original file. Unfortunately the offset is relative to the beginning of Exif data, not to the beginning of the file. The library could help with this. Just need to find the right API, and deal with a few edge cases. Some prior discussion about this happened here: |
Thanks for the quick response and the explanation. Makes sense now. I'll see how I can extract it semi-manual then. |
So it looks like the offset is actually already relativ to the beginning of the file. At least with NEF files. The following code works for me. Only tested with NEF coming from Nikon D5500. Maybe it is usefull for others as well.
|
Nikon raw files (NEF) have an embedded full-size JPEG included inside the EXIF header. I'm trying to extract that.
Using exiftool this would be:
or
Running the following code
results in
Now, comparing file sizes (
1737279
) with exiftools I figured0x0202
should be the right one. So I dowhich results in imgData being null.
Am I doing it wrong or is this currently not possible with metadata-extractor?
The text was updated successfully, but these errors were encountered: