We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Tried to add 'Artist' and 'Copyright' exif fields to artwork.tiff
Exif to be saved and viewable for artwork.tiff.
Exif data was not updated and loading the image with Pillow again also didn't show the updated data.
img = Image.open("artwork.tiff") exif = img.getexif() exif[0x8298] = "test" exif[0x013B] = "test" img.save("artwork.tiff", exif=exif)
artwork.zip The tiff in the zip above was created by converting the svg I will attach below using ImageMagick. artwork-00.svg
Pillow saved the image successfully, no failure messages were shown.
The text was updated successfully, but these errors were encountered:
Hi. If you'd like an immediate workaround, adding in img.load() saves the data correctly.
img.load()
from PIL import Image img = Image.open("artwork.tiff") exif = img.getexif() img.load() exif[0x8298] = "test" exif[0x013B] = "test" img.save("artwork.tiff", exif=exif)
Sorry, something went wrong.
I've created PR #6335 to resolve this.
@radarhere Thank you for the very fast response. I can confirm your workaround works.
Refs #94794 work around Pillow exif bug
0443d33
Bug was reported here: python-pillow/Pillow#6334
Successfully merging a pull request may close this issue.
What did you do?
Tried to add 'Artist' and 'Copyright' exif fields to artwork.tiff
What did you expect to happen?
Exif to be saved and viewable for artwork.tiff.
What actually happened?
Exif data was not updated and loading the image with Pillow again also didn't show the updated data.
What are your OS, Python and Pillow versions?
artwork.zip
The tiff in the zip above was created by converting the svg I will attach below using ImageMagick.
artwork-00.svg
Pillow saved the image successfully, no failure messages were shown.
The text was updated successfully, but these errors were encountered: