Remove TIFF tag OSUBFILETYPE when saving using libtiff by radarhere · Pull Request #7893 · python-pillow/Pillow
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.
Line 536 in ca97370
| LIBTIFF_CORE.remove(255) # We don't have support for subfiletypes |
So this PR simply removes it when saving using libtiff.