Script for syncing image's metadata files using exiftool. This script will embed any information on your image's metadata file to the original image's file. The creation date and modification date of the file will be set as same as the image taken date based on the information specified in the metadata.
This script using exiftool to update media's metadata files. Please install exiftool on your machine before get started.
In the project directory, run the script using command below:
python3 main.py --path YOUR_DIRECTORY_PATH
By default, this script accept media with extension .JPG, metadata with .xmp extension, and RAW file with .raf extension. For other extension options please modify constans defined on the top of main.py. Please check exiftool for the supported format.
optional arguments:
-h, --help show this help message and exit
-p PATH, --path PATH The root directory
This feature will sync metadata file with its media file. The metadata and its media file should be named identical (e.g. DSCF00001.JPG and DSCF00001.xmp)
The script will produce new file after sync and rename original file with suffix (e.g. DSCF00001.JPG_original). This feature will remove all originals.
This feature will remove all metadata.