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

mask region recoginze error

Open wxfred opened this issue 4 years ago • 1 comments

In PSD, add a mask for a layer, use gradient tool to the mask. layer mask psd

Finally, psd.js only recoginze the area with gradient, not including the pure white area in the mask. wrong region

page size 1500x1500 mask region extracted by psd.js is

left: -168
top: 0
width: 1297
height: 1504

another sample ps layer mask psd

psd.js psd js

page size 1500x1500 mask region extracted by psd.js is

left: -168
top: 0
width: 564
height: 1504

wxfred avatar Jun 28 '21 18:06 wxfred

It's not error, just has more complications to save space, involving background fill with layer.mask.defaultColor value. See example in this comment.

f2d avatar Aug 09 '21 23:08 f2d