Files
Brandon ThomasandClaude Opus 5.5 d549069569 feat(psd): Gradient Map stops in CMYK, Lab, Gray and HSB import and round-trip
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]>
2026-10-12 04:36:37 -04:00
..
…
…