How can I tell, ideally with an Imagemagick identify
command, whether a particular PNG is PNG32, PNG24 or PNG8?
The %z
or %[depth]
gives the sample depth (not the pixel depth), which is always 8 or 16 regardless of PNG format, and %m
or %[magick]
just reports PNG
.