Skip to content

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
@radarhere radarhere marked this pull request as ready for review April 6, 2024 10:10
@hugovk hugovk merged commit e62f479 into python-pillow:main Jun 25, 2024
@radarhere radarhere deleted the iptc branch June 25, 2024 11:32
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

2 participants