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

Only preserve TIFF IPTC_NAA_CHUNK tag if type is BYTE or UNDEFINED #7948

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

radarhere
Copy link
Member

Resolves #7940

The issue contains an image where tag 33723 is specified as LONG, when it should be BYTE or UNDEFINED according to https://www.awaresystems.be/imaging/tiff/tifftags/iptc.html.

This changes Pillow to not preserve the tag automatically if it has the wrong type.

@radarhere radarhere added the TIFF label Apr 6, 2024
@radarhere radarhere marked this pull request as draft April 6, 2024 09:26
@radarhere radarhere changed the title Only preserve TIFF IPTC_NAA_CHUNK tag if type if BYTE or UNDEFINED Only preserve TIFF IPTC_NAA_CHUNK tag if type is BYTE or UNDEFINED Apr 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Saving tiff triggers segfault
1 participant