imagemagick
Installation
SKILL.md
ImageMagick Commands
ImageMagick v7 uses magick as the main command. On older systems (v6), use convert, mogrify, identify, montage directly.
Image Info
# Dimensions, format, colorspace, filesize
magick identify image.png
magick identify -verbose image.png
# Just dimensions
magick identify -format "%wx%h" image.png
# Format, dimensions, filesize, colorspace in one line
magick identify -format "Format: %m, Size: %wx%h, Filesize: %b, Colorspace: %[colorspace]\n" image.png