identify可以展示圖像的詳細資訊,比如
- 圖像格式(format)
- 圖像尺寸(geometry)
- 顔色空間(colorspace)
- 圖像深度(depth)
- 圖像通道數(channel)
- 通道統計資料(channel statistics):包括RGBA各通道的統計資料(min,max,mean,std,skewness,entropy等),總像素數量
- 圖像統計資料(image statistics)
- Gamma值
- 品質(quality)
- 屬性(properties):建立時間,修改時間等
- 圖像檔案大小(filesize)
- 總像素數量(number pixels)
檢視詳細輸出需要添加輸入參數
-verbose
,例如:
identify -verbose sport.jpg
輸出結果為:
Image: sport.jpg
Format: JPEG (Joint Photographic Experts Group JFIF format)
Mime type: image/jpeg
Class: DirectClass
Geometry: 183x275+0+0
Units: Undefined
Colorspace: sRGB
Type: TrueColor
Base type: Undefined
Endianess: Undefined
Depth: 8-bit
Channel depth:
Red: 8-bit
Green: 8-bit
Blue: 8-bit
Channel statistics:
Pixels: 50325
Red:
min: 0 (0)
max: 255 (1)
mean: 166.014 (0.651037)
standard deviation: 56.3408 (0.220944)
kurtosis: 0.0955807
skewness: -0.654689
entropy: 0.930072
Green:
min: 0 (0)
max: 255 (1)
mean: 170.397 (0.668224)
standard deviation: 56.0181 (0.219679)
kurtosis: 0.477013
skewness: -1.05591
entropy: 0.914691
Blue:
min: 0 (0)
max: 255 (1)
mean: 117.763 (0.461816)
standard deviation: 71.2012 (0.27922)
kurtosis: -0.85185
skewness: 0.695633
entropy: 0.917692
Image statistics:
Overall:
min: 0 (0)
max: 255 (1)
mean: 151.392 (0.593692)
standard deviation: 61.1867 (0.239948)
kurtosis: -1.02735
skewness: -0.315713
entropy: 0.920818
Rendering intent: Perceptual
Gamma: 0.454545
Chromaticity:
red primary: (0.64,0.33)
green primary: (0.3,0.6)
blue primary: (0.15,0.06)
white point: (0.3127,0.329)
Matte color: grey74
Background color: white
Border color: srgb(223,223,223)
Transparent color: none
Interlace: None
Intensity: Undefined
Compose: Over
Page geometry: 183x275+0+0
Dispose: Undefined
Iterations: 0
Compression: JPEG
Quality: 76
Orientation: Undefined
Properties:
date:create: 2019-05-26T05:56:04+00:00
date:modify: 2019-04-20T02:05:49+00:00
jpeg:colorspace: 2
jpeg:sampling-factor: 2x2,1x1,1x1
signature: db4af19ab88c64cc83633e97df3feb4c6b2b21c85352da91509858a57ad4555a
Artifacts:
verbose: true
Tainted: False
Filesize: 12202B
Number pixels: 50325
Pixels per second: 34.9039MP
User time: 0.000u
Elapsed time: 0:01.001
Version: ImageMagick 7.0.8-46 Q16 x86_64 2019-05-26 https://imagemagick.org
如果沒有使用參數
-verbose
,其輸出内容較少,包括:
檔案名,圖像格式,圖像大小,圖像深度,顔色空間,檔案大小,使用者時間等
,例如:
$ identify sport.jpg
sport.jpg JPEG 183x275 183x275+0+0 8-bit sRGB 12202B 0.000u 0:00.000