Detect Alpha Channel with ImageMagick

Posted by brad on Stack Overflow See other posts from Stack Overflow or by brad
Published on 2010-04-05T22:05:33Z Indexed on 2010/04/05 22:13 UTC
Read the original article Hit count: 398

Filed under:
|
|
|
|

Scenario

I would like to save images with alpha transparency as .png and images without alpha transparency as .jpg (even if their original format is .png or .gif). How can I detect whether or not an image has alpha transparency using ImageMagick?

© Stack Overflow or respective owner

Related posts about image

Related posts about imagemagick