Files
Ken Mantle 7107fb8daf cms: keep black-only CMYK black-only across CMYK → CMYK transforms (#2029)
* cms: keep black-only CMYK black-only across CMYK to CMYK transforms

Opt-in BlackPreserving: a colour with exactly zero C, M and Y converts to
exactly (0, 0, 0, K'), K' matching the source K-only L* in the destination
(both ramps sampled at construction with the transform's intent and BPC).
Transform itself is unchanged.

Adapted from icccer (MIT, same author) black_preserve.rs at 08ca16ab.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* cms: map black past the destination maximum to exactly K = 1 between samples

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* cms: README says the K-ramp check is sampled

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: KenM76 <KenM76>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 14:14:51 -05:00
..