Skip to content

Photoshop EXIF tags are not read #6025

@dorphalsig

Description

@dorphalsig

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions