实际尺寸(英寸)=像素/分辨率; 1英寸=2.54厘米; 如一张图片宽为600像素,分辨率为300,那么实际打印宽度为:600/300=2英寸,约为5厘米。
我如何知道图片的分辨率呢?
请问,这个图片的分辨率是多少?我想计算这个图片的实际尺寸,如果打印出来,它是多大?
identify -verbose sample.webp
Image:
Filename: sample.webp
Format: WEBP (WebP Image Format)
Mime type: image/webp
Class: DirectClass
Geometry: 514x402+0+0
Units: Undefined
Colorspace: sRGB
Type: TrueColor
Base type: Undefined
Endianness: Undefined
Depth: 8-bit
Channel depth:
red: 8-bit
green: 8-bit
blue: 8-bit
Channel statistics:
Pixels: 206628
Red:
min: 22 (0.0862745)
max: 255 (1)
mean: 247.292 (0.969773)
standard deviation: 29.3655 (0.115159)
kurtosis: 26.7614
skewness: -5.10833
entropy: 0.327231
Green:
min: 23 (0.0901961)
max: 255 (1)
mean: 249.128 (0.976973)
standard deviation: 26.3003 (0.103138)
kurtosis: 31.2312
skewness: -5.52078
entropy: 0.246981
Blue:
min: 20 (0.0784314)
max: 255 (1)
mean: 249.658 (0.979052)
standard deviation: 24.4937 (0.0960539)
kurtosis: 35.2188
skewness: -5.80532
entropy: 0.248523
Image statistics:
Overall:
min: 20 (0.0784314)
max: 255 (1)
mean: 248.693 (0.975266)
standard deviation: 26.7198 (0.104784)
kurtosis: 30.85
skewness: -5.46476
entropy: 0.274245
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)
Background color: white
Border color: srgb(223,223,223)
Matte color: grey74
Transparent color: black
Interlace: None
Intensity: Undefined
Compose: Over
Page geometry: 514x402+0+0
Dispose: Undefined
Iterations: 0
Compression: Undefined
Orientation: Undefined
Properties:
date:create: 2024-04-09T05:54:16+00:00
date:modify: 2024-04-09T05:53:45+00:00
signature: 92c4c0125001357b35a6721035c381606c4b03ea9842d2eb5fe726bbeb701601
Artifacts:
filename: sample.webp
verbose: true
Tainted: False
Filesize: 13716B
Number pixels: 206628
Pixels per second: 35.6846MB
User time: 0.010u
Elapsed time: 0:01.005
Version: ImageMagick 6.9.11-60 Q16 x86_64 2021-01-25 https://imagemagick.org