-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
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
Cannot save TIFF files with clipping info #7008
Comments
update tried it with another file that also has clipping info and got the same prob. updated tip file is attached |
Are you on a 32-bit machine, or 64-bit? |
Hi, 64 bit, windows 10, Python 3.10
|
Hmm. That doesn't quite match what I'm seeing, so let me ask - what happens if you delete the EXIF key from the TIFF tags? Does the script run successfully then? from PIL import Image
img = Image.open('images/path test.tif')
del img.tag_v2[34665]
ex = ""
try:
img.save("path test public.tif")
except Exception as e:
ex=e |
Hi. Nope. exact same error |
Ok, thanks. I've put together a potential fix, that should be part of Pillow 9.5.0 when it is released on April 1. I'll check back in around then to confirm that it does indeed also resolve the problem in your environment. |
PR #7053 has been merged and released. Is your problem fixed with Pillow 9.5.0? |
Closing this issue as no feedback has been received. |
I am opening a TIFF file with clipping path data (see #6025), I now want to save it with another name (nothing else was done to it)
error message is "path test public.tif: Failed to allocate memory for custom tag binary object (-1578999712 elements of 1 bytes each)."
when I print the exception I see: RuntimeError('Error setting from dictionary')
file is attached inside a zip
Path test.zip
The text was updated successfully, but these errors were encountered: