FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Remove TIFF tag OSUBFILETYPE when saving using libtiff by radarhere · Pull Request #7893 · python-pillow/Pillow · GitHub

Repository navigation

Remove TIFF tag OSUBFILETYPE when saving using libtiff - #7893

Merged
hugovk merged 1 commit into
python-pillow:mainfrom
radarhere:osubfiletype
Mar 22, 2024
Merged

hugovk merged 1 commit into
python-pillow:mainfrom
radarhere:osubfiletype

Conversation

Copy link
Copy Markdown
Member

Resolves #7892

The issue has found a TIFF image with tag 255, OSUBFILETYPE, that fails to save using libtiff.

It is described at https://www.awaresystems.be/imaging/tiff/tifftags/subfiletype.html as 'deprecated', and TiffTags.py says that we don't support it.

LIBTIFF_CORE.remove(255) # We don't have support for subfiletypes

So this PR simply removes it when saving using libtiff.

radarhere added the TIFF label Mar 22, 2024
radarhere changed the title Block saving TIFF tag OSUBFILETYPE using libtiff Remove TIFF tag OSUBFILETYPE when saving using libtiff Mar 22, 2024

eroux commented Mar 22, 2024

Copy link
Copy Markdown

this is great, thanks a lot!!

hugovk merged commit 0c73db3 into python-pillow:main Mar 22, 2024
radarhere deleted the osubfiletype branch March 22, 2024 21:52
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Saving binary tiff files with tiff_deflate compression fails under certain conditions

3 participants


Back | FazBrowse Home | New Git URL