Skip to content

Conversation

@radarhere
Copy link
Member

Resolves #7839. Similar to #6890

The issue provides an image where the InteropVersion tag has type RATIONAL.
https://exiftool.org/TagNames/EXIF.html states that it should have type UNDEFINED. The tag is loaded as RATIONALs, but this causes an error when Pillow tries to write it as UNDEFINED when saving the EXIF data.

This PR simply handles the IFDRational value when saving UNDEFINED tags.

@hugovk hugovk merged commit 4e92ee0 into python-pillow:main Mar 11, 2024
@radarhere radarhere deleted the write_undefined branch March 12, 2024 00:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants