FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Handle XMP data from an UNDEFINED TIFF tag by radarhere · Pull Request #8997 · python-pillow/Pillow · GitHub

Handle XMP data from an UNDEFINED TIFF tag - #8997

Merged
hugovk merged 2 commits into
python-pillow:mainfrom
radarhere:tiff_xmp
Jun 10, 2025
Merged

Handle XMP data from an UNDEFINED TIFF tag#8997
hugovk merged 2 commits into
python-pillow:mainfrom
radarhere:tiff_xmp

Conversation

radarhere commented Jun 4, 2025
edited by hugovk
Loading

Copy link
Copy Markdown
Member

Resolves #8986

The issue has found an image with XMP data that incorrectly uses an UNDEFINED tag, rather than the specified BYTE tag. This PR updates im.info["xmp"] to still end up with a string, rather than a tuple.

The XMP data is also padded with spaces at the end, similar to zero-byte padding that we've seen before. This PR trims it from the end when parsing the data in im.getxmp().

radarhere changed the title Handle UNDEFINED XMP data Handle XMP data from an UNDEFINED TIFF tag Jun 4, 2025
radarhere mentioned this pull request Jun 4, 2025
hugovk merged commit de053fb into python-pillow:main Jun 10, 2025
radarhere deleted the tiff_xmp branch June 10, 2025 12:37
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

getxmp error

2 participants


Back | FazBrowse Home | New Git URL