mirror of
https://github.com/storytold/photocraft.git
synced 2026-11-21 09:26:43 +00:00
merged_composite showed a CMYK merged image through the built-in coated profile, while the compositor reads the file's layers through the embedded one. Every oracle comparison of a tagged CMYK file therefore measured two different profiles. psd-tools' CMYK files were 88-100% off even with nothing to adjust: colormodes/4x4_8bit_cmyk.psd, a plain image, was 100% off. It now converts inside the document's CMYK space (compose::cmyk_space). The test reads the merged inks back and checks them against the embedded and built-in conversions. psd-tools, bad pixels (pass count unchanged at 213/309): - invert_cmyk: 98% -> 15% - levels_cmyk: 95% -> 14% - curves_cmyk: 98% -> 37% - threshold_cmyk: 65% -> 7% - posterize_16bits_cmyk: 88% -> 13% - 4x4_8bit_cmyk: 100% -> 6% With #4945's ink compositing, invert_cmyk and brightnesscontrast_legacy_cmyk pass (215/309). Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>