Just curious, but is this the bounding box and if so, then the top 
left corner might not be opaque.


Might it be better to extract the alpha channel and search the top 
row for any non transparent pixels. continue with the next row if the 
top row is fully transparent, etc.


>Fast way...  extract the alpha channel, trim, and report the results virtual
>canvas!
>
>    convert image -alpha extract -trim -format '%wx%h%O' info:
>
>This give you the size, and top left corner offset of the non-transparent
>parts of the image.
_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users

Reply via email to