mirror of
https://github.com/storytold/photocraft.git
synced 2026-12-02 06:20:48 +01:00
Photoshop writes a Gradient Map's colour stops in the document's own colour space (CMYK, Lab, Grayscale) or HSB. PhotoCraft only read RGB stops, so such layers imported as unsupported and did nothing. - Decode every plain PSD colour space (RGB, HSB, CMYK, Lab, Grayscale) in `grdm` stops; CMYK converts through the document's own CMYK profile (photocraft-cms), Lab through D50 Lab. Book colours and unknown ids stay unsupported (kept verbatim). - Saving keeps the file's own `grdm` block, so stops keep their colour space; toggling Reverse or Dither patches just those flags in place. Co-Authored-By: Claude Opus 5.5 <[email protected]>