identify

Describe the format and characteristics of one or more image files. Part of ImageMagick. More information: <https://imagemagick.org/script/identify.php>.

Install

All systems
curl cmd.cat/identify.sh
Debian Debian
apt-get install graphicsmagick-imagemagick-compat
Ubuntu
apt-get install graphicsmagick-imagemagick-compat
Alpine
apk add imagemagick6
Arch Arch Linux
pacman -S imagemagick6
image/svg+xml Kali Linux
apt-get install graphicsmagick-imagemagick-compat
Windows (WSL2)
sudo apt-get update sudo apt-get install graphicsmagick-imagemagick-compat
OS X
brew install imagemagick@6
Raspbian
apt-get install graphicsmagick-imagemagick-compat
Docker
docker run cmd.cat/identify identify powered by Commando

Describe the format and characteristics of one or more image files. Part of ImageMagick. More information: <https://imagemagick.org/script/identify.php>.

  • Describe the format and basic characteristics of an image:
    identify path/to/image
  • Describe the format and verbose characteristics of an image:
    identify -verbose path/to/image
  • Collect dimensions of all JPEG files in the current directory and save them into a CSV file:
    identify -format "%f,%w,%h\n" *.jpg > path/to/filelist.csv

© tl;dr; authors and contributors