Agamnentzar / ag-psd

Javascript library for reading and writing PSD files
Other
496 stars 66 forks source link

Text Color parsing error in file that was converted from CMYK to RGB #145

Closed bhorsting closed 1 year ago

bhorsting commented 1 year ago

Hi,

For the attached file, the text in the layer called Adrian is parsed as blue instead of the orange it shows in Photoshop. This file was converted from CMYK to RGB. I think the text colour values are still described in CMYK; when debugging decodeColor in text.ts I see a color type 2 come in with 5 values. So apparently Photoshop can convert a file to RGB yet not update font colours?

HSO002-SQ.psd.zip

Text in Photoshop:

image

Text as parsed by ag-psd:

image
Agamnentzar commented 1 year ago

Added support for different color modes in text layer colors in version 16.0.0 Unfortunately you do get CMYK color in there instead of RGB

bhorsting commented 1 year ago

Thanks so much!