TOOL » IMAGE_MANIPULATOR » IMAGEMAGICK

Identify

Usage

Get image information.

shell
identify OPTIONS image.png
OptionDescription
-formatOutput formatted image characteristics.
-precisionNumber of digits to represent the image size. Use 16 to show in bytes.

Format

All available format options here.

SignDescription
%PPage (canvas) size ( = %Wx%H )
%GOriginal image size ( = %wx%h ).
%wCurrent width in pixels.
%WPage (canvas) width.
%hCurrent image height in pixels.
%HPage (canvas) height.
%bFile size of image
%eFilename extension or suffix.
%tFilename without directory or extension (suffix).
%mImage file format (file magic).

Examples

Print image width x height and file size in bytes:

shell
identify -precision 16 -format '%P %b' ~/Projects/atelier-lua/thumbnails/0039-anime.avif