libpano13 writes TIFF files with an alpha channel, but without the required ExtraSamples TIFF metadata tag indicating that the 4th channel is alpha.
With the incorrect metadata, applications based on libtiff (e.g. tiffinfo) print a warning when opening a file created by PTUncrop:
TIFFReadDirectory: Warning, Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples..Pillow 9.1.0 (Python library) fails to load these images, though this has been fixed.
I couldn't figure out where libpano13's authoritative source
repository is, or how to submit a pull request or equivalent, so I've attached the patch against libpano13 v2.9.21 here.
I couldn't figure out where libpano13's authoritative source repository is, or how to submit a pull request or equivalent, so I've attached the patch against libpano13 v2.9.21 here.
libpano13 writes TIFF files with an alpha channel, but without the required ExtraSamples TIFF metadata tag indicating that the 4th channel is alpha.
With the incorrect metadata, applications based on libtiff (e.g. tiffinfo) print a warning when opening a file created by PTUncrop:
TIFFReadDirectory: Warning, Sum of Photometric type-related color channels and ExtraSamples doesn't match SamplesPerPixel. Defining non-color channels as ExtraSamples..