Open bhorsting opened 1 year ago
I never encountered PSD file with {redFloat: 0.5, greenFloat: 0.5, blueFloat: 0.5}
color object, I'll check it out.
Just released version 15.1.0
with fix for the color, I added new type for the float colors:
export type FRGB = { fr: number; fg: number; fb: number; }; // values from 0 to 1 (can be above 1)
amazing! thanks so much!
Just for the history- it's possible to have negative values there
KEY: Clr TYPE: DescValueType.OBJECTTYPE VALUE_T:RGBC VALUE: [ActionDescriptor]
KEY: __COUNT__ TYPE: null VALUE: 3
KEY: redFloat TYPE: DescValueType.DOUBLETYPE VALUE: 0.24089959263802
KEY: greenFloat TYPE: DescValueType.DOUBLETYPE VALUE: 0.04970443621278
KEY: blueFloat TYPE: DescValueType.DOUBLETYPE VALUE: -0.11133494228125
For the following file:
src.psd.zip ag-psd does not populate the
effects
object because parseColor fails. It gets an object of type {redFloat: 0.5, greenFloat: 0.5, blueFloat: 0.5}I can fix this by changing parseColor to
but this assumes the PSD is 8 bits per channel. Did you ever encounter this issue? It's new to me. I can make a PR taking bits per channel into account, just wanted to check if you knew anything about this issue.