Change EXIF Date / Time if it's different from Data / Time Original or Digitized

Started by cheerful, January 07, 2023, 04:54:06 PM

Previous topic - Next topic

cheerful

Hi,

I found Photoshop or another panorama creator will set the Date / Time tag to the time when it's processed.  Unfortunately, I have another application that uses this tag instead of Date / Time original.

What could I do to set Date / Time to Date / Time original if they are different (and don't change anything if not)?  This is about 5% of the photos so don't want to change the rest of them.

Thanks

StarGeek

Your command would be something like

exiftool -if "$ModifyDate ne $DateTimeOriginal" "-ModifyDate<DateTimeOriginal" /path/to/files/

Technically, ModifyDate (called DateTime by the EXIF standard) is supposed to be changed whenever the image is modified.  But it's your data and if your apps are giving priority to ModifyDate, then by all means change it.
* Did you read FAQ #3 and use the command listed there?
* Please use the Code button for exiftool code/output.
 
* Please include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).