Page 1 of 1

How to get the Offset for content of the tranperent image

Posted: 2011-02-16T09:06:44-07:00
by srijithc
Hi all,

I am having an transparent image and that image having image content at the right most corner of the image.

Is there any way to get the offset of the image content(Actual content of the image) by using Image Magick.

Please help me.

Thanks
Srijith C

Re: How to get the Offset for content of the tranperent imag

Posted: 2011-02-16T12:29:11-07:00
by fmw42
use -trim

convert image -trim result.png

convert result.png -format "%X,%Y" info:

or

identify -verbose result.png
and look at

Page Geometry
Origin Geometry

see
http://www.imagemagick.org/script/escape.php

http://www.imagemagick.org/Usage/crop/#trim

Re: How to get the Offset for content of the tranperent imag

Posted: 2011-02-16T21:38:35-07:00
by srijithc
Thank You.

Thanks
Srijith C