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

Raise an error if EXIF data is too long when saving JPEG #6939

Merged
merged 1 commit into from Feb 11, 2023

Conversation

radarhere
Copy link
Member

Resolves #6932

https://en.wikipedia.org/wiki/Exif

Exif metadata are restricted in size to 64 kB in JPEG images because according to the specification this information must be contained within a single JPEG APP1 segment.

This PR raises an error if EXIF data is too large when saving JPEG.

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.

Saving TIFF as JPEG fails with OSError: encoder error -2
2 participants