I am using:
- Python 3.8.5
- Pillow 8.2
- ExifRead 2.3.2
I am trying to extract the EXIF data from this image (as a random example).
Here is what I have tried so far:
using ExifRead:
import exifread
with open('/path/to/image/file', 'rb') as f:
tags = exifread.process_file(f)
print(tags) # No EXIF data found
Using PIL
from PIL import Image
img = PIL.Image.open('/path/to/image/file')
exif_data = img.getexif()
Again, this produces paltry results
However, when I upload the same photo to an oline exif data checking service, I get the full EXIF data.
How can I fix my code so that I can extract the same data that is available to exifdata.com?