Skip to content
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

Fix Exif thumbnail offset #333

Merged
merged 4 commits into from
May 8, 2023
Merged

Fix Exif thumbnail offset #333

merged 4 commits into from
May 8, 2023

Conversation

drewnoakes
Copy link
Owner

Fixes #35

The offset is currently reported relative to the start of the Exif data. However, most users will need the value relative to the start of the outermost data stream. This change attempts to provide that value.

Should work for JPEG and RAW files. Won't work for Exif data embedded within other formats such as PNG, QuickTime, WebP or HEIF. Such support could be added in future.

The offset is currently reported relative to the start of the Exif data. However, most users will need the value relative to the start of the outermost data stream. This change attempts to provide that value.

Should work for JPEG and RAW files. Won't work for Exif data embedded within other formats such as PNG, QuickTime, WebP or HEIF. Such support could be added in future.
@kwhopper
Copy link
Collaborator

kwhopper commented May 8, 2023

This issue and others like it are mitigated through #131 as it’s embedded in the design.

It’s very old now and introduces many other changes, but decided to offer it for revival once more. Thanks.

@drewnoakes
Copy link
Owner Author

I haven't forgotten that work @kwhopper. It's a big change and requires a lot of review, especially around performance, while this is just a quick, surgical, and imperfect change.

Note to self, pick up review of:

@drewnoakes drewnoakes merged commit 0ac7d01 into master May 8, 2023
4 checks passed
@drewnoakes drewnoakes deleted the exif-thumbnail-offset branch May 8, 2023 03:49
@kwhopper
Copy link
Collaborator

kwhopper commented May 8, 2023

Thanks. I’m happy to help with it again if it lands on your radar.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Reported JPEG Thumbnail Offsets are incorrect
2 participants