This repository has been archived on 2025-05-28 . You can view files and clone it, but cannot push or open issues or pull requests.
📷📆 - photo-datestamper
Little script to add date caption to photos from their EXIF data.
Notes on Exif data
There is ExifRead or Exif which can also modify exif data (and is tested and documented).
Both seem to be alive but ExifRead should suffice.
with open(file, 'rb') as f:
# Don’t process makernote tags, don’t extract the thumbnail image (if any)
tags = exif.process_file(f, details=False)
for tag in tags.keys():
if tag not in ('JPEGThumbnail', 'TIFFThumbnail', 'Filename', 'EXIF MakerNote'):
Interesting keys (to be completed by further observations):
Image Orientation
Image DateTime
EXIF DateTimeOriginal
EXIF DateTimeDigitized
EXIF ExifImageWidth
EXIF ExifImageLength
Description
Languages
Python
100%