Agamnentzar / ag-psd

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

shape fill always with color #166

Closed harelmotro closed 7 months ago

harelmotro commented 8 months ago

Hi, When creating a shape layer in photoshop that has no color as fill (transparent shape that may still have a stroke), I still get vectorFill with a rgb color from readPsd function. I can't find any indication in the layer object that it has no fill color.

Agamnentzar commented 8 months ago

vectorStroke.fillEnabled is the field you're looking for, I know it's weird for fill indicator to be in stroke, but that's just how PSD file is structured XD