Hello,
I have some png images with transparent areas like this with one or more holes :
the edges are semi transparent.
Please help me in finding the coordinates of the top left corner and bottom right corner of the bounding box of the transparent area like this.
Thanks
find coordinates of bounding box of transparent pixels
find coordinates of bounding box of transparent pixels
(using the latest IM version on linux centos 6)
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: find coordinates of bounding box of transparent pixels
see -trim or string format "%@"
56x70+22+55
see
http://www.imagemagick.org/script/comma ... s.php#trim
http://www.imagemagick.org/script/escape.php
Code: Select all
convert dwrl3t.png -format "%@" info:
see
http://www.imagemagick.org/script/comma ... s.php#trim
http://www.imagemagick.org/script/escape.php
Re: find coordinates of bounding box of transparent pixels
Thanks a lot.
It worked very well.
It worked very well.
(using the latest IM version on linux centos 6)