-
-
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
Photoshop EXIF tags are not read #6025
Comments
Hi. Would you be able to attach a copy of mypsdTiff.tiff? |
Hey radar, thanks for replying so quick. Here it is. In a ZIP file because else I couldn't upload it.
|
Thanks. If you run
The information you're after is within the PhotoshopSettings subdirectory, tag 0x8649, a "Collection of Photoshop 'Image Resource Blocks'". I've created PR #6030 to add a new method, from PIL import Image
img=Image.open('mypsdTiff.tiff')
psd_paths = range(0x07d0, 0x0bb5)
blocks = list(img.getphotoshopblocks().keys())
print("Yay!" if any(path in blocks for path in psd_paths) else "Nay!") prints "Yay!" |
Hello, Hello!
I need to detect if a file has Photoshop clipping paths present using the corresponding EXIF tags (0x07d0 - 0xbb5) However Pillow seems to ignore these tags.
Result: "Nay!"
Expected Result: "Yay!"
The tag in the file is the 0x07d0. I did test it out with exiftool.
I have the feeling I have to add this range to PIL.TiffTags?
OS: Windows 11 (and Server 2008)
Python Version: 3.9 (and 3.10)
Pillow version: 9.01
The text was updated successfully, but these errors were encountered: