update‐exif‐date - yktoo/yktools GitHub Wiki

Sometimes you know when a photo has been made, but the image file does not contain the date in its metadata. For instance, if you've scanned a printed photo.

This script updates the EXIF date of a JPEG image according to the file name, for all files in the specified directory. The file name must be in the following format: yyyy-mm-dd the-rest-does-not-matter.jpg.

Synopsis

update-exif-date pictures_dir

Where:

  • pictures_dir Path to the directory with JPEG files

Requires

  • jhead:
    sudo apt-get install jhead

Usage examples

  1. Update the EXIF date for all the .jpg files in the Pictures subdirectory (in the user's home directory):
update-exif-date ~/Pictures

See also

⚠️ **GitHub.com Fallback** ⚠️