-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Closed
Labels
Description
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.
from PIL import Image
img=Image.open('mypsdTiff.tiff')
psd_paths = range(0x07d0, 0x0bb5)
exif_tags = list(img.getexif().keys())
print ("Yay!" if any(path in exif_tags for path in psd_paths) else "Nay!")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