Help extract alpha coordinates
Posted: 2016-04-16T01:28:26-07:00
I need get size and coordinates of transparent area inside png image.
like 555x560+428+376 in some image.
And it works, but not always
original img http://kartinka.by/imagemagick/r0325.png
convert ./r0325.png -alpha extract -format "%@" info:
and result 1000x1000+0+0 <-- no coords
original img http://kartinka.by/imagemagick/r0051.png
convert ./r0051.png -alpha extract -format "%@" info:
and result 1299x945+0+0 <-- no coords
why on than images alpha extract does not work, how to make it work ?
like 555x560+428+376 in some image.
And it works, but not always
original img http://kartinka.by/imagemagick/r0325.png
convert ./r0325.png -alpha extract -format "%@" info:
and result 1000x1000+0+0 <-- no coords
original img http://kartinka.by/imagemagick/r0051.png
convert ./r0051.png -alpha extract -format "%@" info:
and result 1299x945+0+0 <-- no coords
why on than images alpha extract does not work, how to make it work ?