ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: cheerful on January 07, 2023, 04:54:06 PM

Title: Change EXIF Date / Time if it's different from Data / Time Original or Digitized
Post by: cheerful on January 07, 2023, 04:54:06 PM
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
Title: Re: Change EXIF Date / Time if it's different from Data / Time Original or Digitized
Post by: StarGeek on January 07, 2023, 05:10:11 PM
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.
Title: Re: Change EXIF Date / Time if it's different from Data / Time Original or Digitized
Post by: cheerful on January 08, 2023, 12:56:23 PM
Thank you