Re: can I check if an image is transparent??
Posted: 2008-07-09T18:52:16-07:00
Sorry for the slow delay.
Look for statistics, alpha, and if the maximin is not zero there is at least some semi-transparency.
Alternative extract the alpha channel...
If 0 it is fully-opaque, it is 1, image has full transparent,
a value between only some semi-transparency (translucent)
Code: Select all
identify -verbose image
Alternative extract the alpha channel...
Code: Select all
convert image -matte -channel A -separate -format '%[fx:image.maxima]' info:
a value between only some semi-transparency (translucent)