How to find earliest date and set all dates to this value ?

Started by gepardieu, March 14, 2022, 05:16:43 AM

Previous topic - Next topic

gepardieu

Hi, I have a large number of images and videos which all have different sets of date values, most of which don't match.. I would like to conditionally for each file find the earliest date, whether it is the DateTimeOriginal, FileModify, MediaCreate, GSPDate, etc., and set all dates (or at least set the DateTimeOriginal) to this date. This would include to first remove all dates with zero or 1904 values . Can this be done e.g. using conditional expressions in exiftool? Thanks in advance

StarGeek

"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype