Skip to content

Fixed writing int as UNDEFINED tag#6950

Merged
hugovk merged 1 commit intopython-pillow:mainfrom
radarhere:tiff_undefined
Feb 14, 2023
Merged

Fixed writing int as UNDEFINED tag#6950
hugovk merged 1 commit intopython-pillow:mainfrom
radarhere:tiff_undefined

Conversation

@radarhere
Copy link
Member

Resolves #6948

While https://www.awaresystems.be/imaging/tiff/tifftags/iptc.html is UNDEFINED or BYTE,

Often times, the datatype is incorrectly specified as LONG.

So this PR allows integers to be written as UNDEFINED tags.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Exif tag 'IptcNaaInfo' (33723) causes crash when saving TIFF as JPEG ('TypeError: object of type 'int' has no len()')

2 participants