ExifTool文件鉴定器
ExifTool常被拿来做照片信息读取,也可对任意文件进行读取
官方源码下载地址:https://metacpan.org/release/Image-ExifTool
普通使用方法可直接使用exiftool 文件
读取照片abc.jpg的数据信息:
exiftool -a -u -g1 abc.jpg
---- ExifTool ----
ExifTool Version Number : 11.11
---- System ----
File Name : abc.jpg
Directory : ..
File Size : 175 kB
File Modification Date/Time : 2018:12:07 10:18:01+08:00
File Access Date/Time : 2019:01:16 11:21:40+08:00
File Inode Change Date/Time : 2018:12:07 10:18:01+08:00
File Permissions : rwxrwxrwx
---- File ----
File Type : JPEG
File Type Extension : jpg
MIME Type : image/jpeg
Comment : CREATOR: gd-jpeg v1.0 (using IJG JPEG v62), quality = 90.
Image Width : 1024
Image Height : 1024
Encoding Process : Baseline DCT, Huffman coding
Bits Per Sample : 8
Color Components : 3
Y Cb Cr Sub Sampling : YCbCr4:2:0 (2 2)
---- JFIF ----
JFIF Version : 1.01
Resolution Unit : None
X Resolution : 1
Y Resolution : 1
---- Composite ----
Image Size : 1024x1024
Megapixels : 1.0