Photoshop layer rectangles in wrong order?

Started by blue-j, July 26, 2022, 03:50:38 PM

Previous topic - Next topic

blue-j

In photoshop:layerrectangles, the coordinates listed are in y,x order.  Is this intended?  I expected x, y order.

- J

Phil Harvey

...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

blue-j

Aha!  Typically a bounding box is specified by two x,y coordinates - upper left corner and bottom right corner.  But it seems Adobe specifies rectangles differently!  Not (left x, top y) and (right x, bottom y) as I expected, but top, left, bottom, right?  Okie dokie.  Thank you, sensei.  - J