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

Do not presume "xmp" info simply because "XML:com.adobe.xmp" info exists #8173

Merged
merged 1 commit into from
Jun 27, 2024

Conversation

radarhere
Copy link
Member

#8069 changed ImageOps.exif_transpose() so that when updating a PNG image's im.info["XML:com.adobe.xmp"], it would update the newly added im.info["xmp"] as well.

However, #8171 (comment) has pointed out that our code shouldn't presume that the user didn't manually set im.info["XML:com.adobe.xmp"] themselves, in which case im.info["xmp"] might be absent.

@bigcat88
Copy link
Contributor

Thank you, with the past and this pull request together - everything will be fine :)

@hugovk hugovk merged commit 6a2b8e7 into python-pillow:main Jun 27, 2024
56 of 58 checks passed
@radarhere radarhere deleted the xmp_imageops branch June 27, 2024 12:51
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.

None yet

3 participants