← 返回命令列表

Linux command

identify 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Show image info

identify [image.jpg]

Verbose info

identify -verbose [image.png]

Show specific property

identify -format "%wx%h" [image.jpg]

Check multiple images

identify [*.png]

Show format only

identify -format "%m\n" [image]

说明

identify describes image format and characteristics. It shows dimensions, color depth, format, and other metadata. The tool is part of ImageMagick. It reads many image formats and provides detailed technical information about images. In ImageMagick 7, the equivalent is invoked as magick identify.

参数

-verbose
Detailed output.
-format _STRING_
Custom output format.
-quiet
Suppress warnings.
-ping
Efficiently determine image attributes without fully decoding pixels.
-regard-warnings
Pay attention to warnings when loading the image.
-list _type_
List supported values for the specified option (e.g. format, color).
--help
Display help information.

FAQ

What is the identify command used for?

identify describes image format and characteristics. It shows dimensions, color depth, format, and other metadata. The tool is part of ImageMagick. It reads many image formats and provides detailed technical information about images. In ImageMagick 7, the equivalent is invoked as magick identify.

How do I run a basic identify example?

Run `identify [image.jpg]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does -verbose do in identify?

Detailed output.