Photoshop Generator API returns incorrect values for boundsWithFx

  • 1
  • Problem
  • Updated 3 years ago
The boundsWithFx comes with a +1 in right and bottom values when there is a layer style that affects bounds. You can see this by doing

1) Create a new document
2) Draw a rectangle
3) Add a drop shadow or some other effect that extends rectangle bounds
4) Trim document of transparent pixels

Now generator returns top=left=0 as it should, but right=document width+1 and bottom=document height + 1. It should be right-left=width and bottom-top=height. You can see also by replicating without the drop shadow and both bounds and boundsWithFx return correct values
Photo of Matias Kiviniemi

Matias Kiviniemi

  • 8 Posts
  • 0 Reply Likes

Posted 3 years ago

  • 1

Be the first to post a reply!