mirror of
https://github.com/storytold/photocraft.git
synced 2026-12-03 06:31:42 +01:00
convert_document treated a Duotone document as plain gray: it converted the stored gray pixels through the gray profile and dropped the inks, so the result was neutral gray instead of the inked look the canvas shows. Fill, text and effect colours stored in Duotone mode were not converted at all. Before converting to a colour space, a Duotone document is now inked into sRGB (Duotone::render, the same model the display uses, with the inks' sRGB colours), then converted through photocraft-cms to the destination profile like any RGB document. Grayscale still keeps the underlying gray. Works per layer at every depth; undo restores the Duotone document. Co-authored-by: Fabio Lussi <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>