User Tools

Site Tools


photo:exiftool

EXIFTool to modify EXIF metadata in photo files

When I started using Excire Foto to sort my photos, I noticed that many of my photos were either taken with a camera that didn't write EXIF information or were modified by a program that removed the metadata.

Most photos keep the date when they were taken. But not as one would assume in the File Created Date but in the File Last Modified Date. I found ExifTool by Phil Harvey (https://exiftool.org/) a very useful Open Source Software.

With Excire Foto and ExifTool, I used following workflow to add the Create Date to photos that lack it:

In Excire Foto, select the container (folder, search result or collection) that contains the photos without Create Date. In the Attributes filter check the item “No capture date”. Then select all photos that are left in display. Right click on the selection and click on “Export filename(s)”.

In the dialog select the directory and the name for the .CSV file and check “Export filenames with full path”.

Open the just saved file with notepad++

Add at the beginning of each line

exiftool "-CreateDate<FileModifyDate" -P "

and at the end of each line

"

Save the file as batch or command file (.bat or .cmd) with any name convenient and then run it in a command shell.

photo/exiftool.txt · Last modified: 2024/05/15 06:47 by olaf