Files
photocraft/apps
Finn NewickandClaude Opus 5.5 4121ff4dc1 fix(tiff): keep a TIFF's alpha channel, and add a tiffCompression save option
Photoshop writes a document's alpha channel as an unspecified extra sample (ExtraSamples 0). The decoder dropped it, so such a TIFF opened without its channel and a save never wrote one. With no extra sample marked as transparency, the first unspecified one is now decoded as the alpha and flagged as an alpha channel (Metadata::alpha_is_channel): flat TIFFs open it as a named alpha channel over an opaque Background, layered ones through their Photoshop channel names. Saving writes the first alpha channel as an unspecified extra sample when the document has no transparency (flat and layered), naming the channels it leaves out; extra samples beyond the alpha are dropped with a warning. Saves also take tiffCompression (none, lzw, zip) and the CLI --tiff-compression. Fixes #5301.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 07:37:09 +01:00
..