identifyコマンドを使う。以下は、ImageMagickに標準で付属している画像を作成し、その画像ファイルの大きさや色数について調べた例。
>magick convert logo: logo.png
>magick convert rose: rose.tif
>magick identify logo.png
logo.png PNG 640x480 640x480+0+0 8-bit sRGB 256c 27398B 0.000u 0:00.049
>magick identify rose.tif
rose.tif TIFF 70x46 70x46+0+0 8-bit sRGB 9924B 0.000u 0:00.000