Page 1 of 1

get .psd layer (x,y) positions

Posted: 2019-02-15T07:13:16-07:00
by mylastgg
Hello everyone!

I'm writing my first bash script with ImageMagick.
I have a .psd file with multiple layers. I'd like to extract and 'store' (in a file, or pass to another script) the X and Y positions of the layers.

Is this possible with ImageMagick?

Best

Re: get .psd layer (x,y) positions

Posted: 2019-02-15T07:46:20-07:00
by mylastgg
I've found that identify prints something like

banana.png PNG 248x161 248x161+733+471 8-bit sRGB 193392B 0.000u 0:00.009

I'm guessing that 248x161+733+471 (Geometry) is what I'm looking for?

Re: get .psd layer (x,y) positions

Posted: 2019-02-16T01:59:34-07:00
by dlemstra
Yes that is what you are looking for. And you should skip the first image because that is the merged image and not a layer.

Re: get .psd layer (x,y) positions

Posted: 2019-02-18T03:34:17-07:00
by mylastgg
thanks! it worked!