Code: Select all
convert logo: -transparent white logo.png
identify -format "%A" logo.png
The above worked in older IM versions, but not with the current version.
However, when combined with other properties, it's ok:
Code: Select all
identify -format "%A\n%r" logo.png
DirectClassRGBMatte
(By the way, it should be PseudoClass here, not DirectClass.)
Using ImagMagick v6.6.7-10 Q16, Windows XP.