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
How to get the Offset for content of the tranperent image
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: How to get the Offset for content of the tranperent imag
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
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
Thank You.
Thanks
Srijith C
Thanks
Srijith C