You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi!
These lines that exiftool outputs are not necessarily exif metadata.
For example, File Size and File Modification Date/Time are metadata that exist in any file, regardless of the image.
You can execute exiftool.exe -g1 xx.jpg to view the grouped information.
You can execute exiftool.exe -exif:all xx.jpg to view only exif.
import pyexiv2
img = pyexiv2.Image("/Users/shahid/Desktop/test/andypassport2.jpeg")
data = img.read_exif()
print(data)
#{}
➜ exiftool andypassport2.jpeg
ExifTool Version Number : 13.10
File Name : andypassport2.jpeg
Directory : .
File Size : 140 kB
File Modification Date/Time : 2022:09:15 21:45:02+05:30
File Access Date/Time : 2025:01:05 22:55:14+05:30
File Inode Change Date/Time : 2025:01:05 22:55:13+05:30
File Permissions : -rw-r--r--
File Type : JPEG
File Type Extension : jpg
MIME Type : image/jpeg
JFIF Version : 1.01
Resolution Unit : None
X Resolution : 1
Y Resolution : 1
Image Width : 1195
Image Height : 1600
Encoding Process : Progressive DCT, Huffman coding
Bits Per Sample : 8
Color Components : 3
Y Cb Cr Sub Sampling : YCbCr4:2:0 (2 2)
Image Size : 1195x1600
Megapixels : 1.9
➜ test
The text was updated successfully, but these errors were encountered: