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? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Opened TIFF image, grabbed exif, tried to save TIFF as JPEG with exif.
JPEG to be saved successfully.
Crash: TypeError: object of type 'int' has no len()
TypeError: object of type 'int' has no len()
from PIL import Image, ExifTags, TiffImagePlugin, ImageOps Image.MAX_IMAGE_PIXELS = None src_img = Image.open("7ba1a16b64cb74a285d0b8f0e5ea652d-2002-078-839.tif") exif = src_img.getexif() dst_img = ImageOps.exif_transpose(src_img).convert("RGB") dst_img.save("test.jpg", quality=95, exif=exif)
Removing the tag allows the jpeg to be saved successfully. This seems to be at least related to the same tag as issue #5852. Image to reproduce
The text was updated successfully, but these errors were encountered:
I've created PR #6950 for this.
Sorry, something went wrong.
Merge pull request #6950 from radarhere/tiff_undefined
3986eaf
Resolves #6948
Successfully merging a pull request may close this issue.
What did you do?
Opened TIFF image, grabbed exif, tried to save TIFF as JPEG with exif.
What did you expect to happen?
JPEG to be saved successfully.
What actually happened?
Crash:
TypeError: object of type 'int' has no len()
What are your OS, Python and Pillow versions?
Removing the tag allows the jpeg to be saved successfully. This seems to be at least related to the same tag as issue #5852.
Image to reproduce
The text was updated successfully, but these errors were encountered: