psd.js icon indicating copy to clipboard operation
psd.js copied to clipboard

How to get the background color

Open lijialiang opened this issue 10 years ago • 4 comments

hello, psd.js is so good ! And i have a problem,can i get the background color from the layer ?

lijialiang avatar Jul 29 '15 06:07 lijialiang

Hey @meltingice I'm also wondering about this.

For example, I tried parsing this PSD and then accessing the solidColor of a shape:

var shape = psd.tree().childrenAtPath('Version B/Logo_Glyph');
shape.get('solidColor');
// => undefined

Any suggestions?

jodyheavener avatar Oct 05 '15 23:10 jodyheavener

I have error "Cannot read property width of null"

Marina123456 avatar Nov 10 '16 18:11 Marina123456

+1

AnselDai avatar Mar 03 '22 09:03 AnselDai

+1

A-FE avatar Jun 14 '22 07:06 A-FE