![为什么 mediainfo 不像 exiftool 那样提供图像的元数据?](https://linux22.com/image/131541/%E4%B8%BA%E4%BB%80%E4%B9%88%20mediainfo%20%E4%B8%8D%E5%83%8F%20exiftool%20%E9%82%A3%E6%A0%B7%E6%8F%90%E4%BE%9B%E5%9B%BE%E5%83%8F%E7%9A%84%E5%85%83%E6%95%B0%E6%8D%AE%EF%BC%9F.png)
我已经为此摸不着头脑有一段时间了。让我们看看 mediainfo 在图像上说了什么 -
$ mediainfo ZQs3vcsHiGY.jpg
General
Complete name : ZQs3vcsHiGY.jpg
Format : JPEG
File size : 895 KiB
Image
Format : JPEG
Width : 2 500 pixels
Height : 1 576 pixels
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Compression mode : Lossy
Stream size : 895 KiB (100%)
ColorSpace_ICC : RGB
现在让我们在 exiftool 中查看相同的图像 -
$ exiftool ZQs3vcsHiGY.jpg
ExifTool Version Number : 10.80
File Name : ZQs3vcsHiGY.jpg
Directory : .
File Size : 895 kB
File Modification Date/Time : 2018:04:12 10:40:35+05:30
File Access Date/Time : 2018:04:15 12:43:28+05:30
File Inode Change Date/Time : 2018:04:12 10:40:35+05:30
File Permissions : rw-r--r--
File Type : JPEG
File Type Extension : jpg
MIME Type : image/jpeg
JFIF Version : 1.01
Resolution Unit : inches
X Resolution : 72
Y Resolution : 72
XMP Toolkit : XMP Core 4.4.0-Exiv2
Source URL : https://unsplash.com/photos/ZQs3vcsHiGY
Source Type : unsplash
Author : rawpixel.com
Source Name : Unsplash.com
Sfw Rating : 100
Image URL : https://unsplash.com/photos/ZQs3vcsHiGY/download
Author URL : https://unsplash.com/@rawpixel
Source Location : https://unsplash.com
Creator : rawpixel.com
Profile CMM Type : Linotronic
Profile Version : 2.1.0
Profile Class : Display Device Profile
Color Space Data : RGB
Profile Connection Space : XYZ
Profile Date Time : 1998:02:09 06:49:00
Profile File Signature : acsp
Primary Platform : Microsoft Corporation
CMM Flags : Not Embedded, Independent
Device Manufacturer : Hewlett-Packard
Device Model : sRGB
Device Attributes : Reflective, Glossy, Positive, Color
Rendering Intent : Perceptual
Connection Space Illuminant : 0.9642 1 0.82491
Profile Creator : Hewlett-Packard
Profile ID : 0
Profile Copyright : Copyright (c) 1998 Hewlett-Packard Company
Profile Description : sRGB IEC61966-2.1
Media White Point : 0.95045 1 1.08905
Media Black Point : 0 0 0
Red Matrix Column : 0.43607 0.22249 0.01392
Green Matrix Column : 0.38515 0.71687 0.09708
Blue Matrix Column : 0.14307 0.06061 0.7141
Device Mfg Desc : IEC http://www.iec.ch
Device Model Desc : IEC 61966-2.1 Default RGB colour space - sRGB
Viewing Cond Desc : Reference Viewing Condition in IEC61966-2.1
Viewing Cond Illuminant : 19.6445 20.3718 16.8089
Viewing Cond Surround : 3.92889 4.07439 3.36179
Viewing Cond Illuminant Type : D50
Luminance : 76.03647 80 87.12462
Measurement Observer : CIE 1931
Measurement Backing : 0 0 0
Measurement Geometry : Unknown
Measurement Flare : 0.999%
Measurement Illuminant : D65
Technology : Cathode Ray Tube Display
Red Tone Reproduction Curve : (Binary data 2060 bytes, use -b option to extract)
Green Tone Reproduction Curve : (Binary data 2060 bytes, use -b option to extract)
Blue Tone Reproduction Curve : (Binary data 2060 bytes, use -b option to extract)
Image Width : 2500
Image Height : 1576
Encoding Process : Baseline DCT, Huffman coding
Bits Per Sample : 8
Color Components : 3
Y Cb Cr Sub Sampling : YCbCr4:2:0 (2 2)
Image Size : 2500x1576
Megapixels : 3.9
我去了上游媒体信息并看到了这个页但无法理解要投票给哪个功能,因此它将提供更多元数据信息。对于图像。
我也搜索了本地联机帮助页以及 --help 但没能走得太远。我确实知道 mediainfo 更适合视频和音频文件而不是图像,但如果一个工具可以完成这一切,那就太好了。
我正在运行 exiftool 10.80-1 并且
$ mediainfo --version
MediaInfo Command line,
MediaInfoLib - v18.03
关于 Debian 测试。
答案1
您正在寻找的是mediainfo
支持 EXIF 元数据(据我所知,这不是该页面上列出的提案之一)。如果您想要该功能,您应该向他们建议。