I need to log the bounding box of the selected area from an image to the command line.
This is because I will have to do this across a number of images and then compare and reuse those bounding boxes.
I'd like to be able to do something like this:
and see output like this:
for a selectionoffset by 100 and 20 pixels from top left, and 1400 pixels wide and 1000 tall.
I can use Preview, Photoshop or Gimp, and am comfortable with Applescript, bash.
For example, in Preview, I would be able to get the selection bounding box shown below:
188x207 (the size of the selection bounding box) plus information about the selection's offset via command line.
That way I could use that as an input to other scripts - mostly via ImageMagick.
Is there a way to do this?