Shift Dates If Photo Taken With Certain Camera

Started by MadMax, February 07, 2018, 05:01:01 PM

Previous topic - Next topic

MadMax

I would like to shift the dates of photos ahead by 4 hrs 46 min and 13 secs only if taken with my Canon camera.  I am using macOS with latest version of Exiftool.  I tried the command below with no luck.  Must have a mistake in my syntax.  Any help appreciated.

   exiftool -if '$Make eq "Canon"'-AllDates+=0:0:0 4:46:13'.


Phil Harvey

Very close, but your quoting is a bit funny.  I'm assuming you are on Mac or Linux, so try this:

exiftool -if '$Make eq "Canon"' -AllDates+='0:0:0 4:46:13' DIR

Here it seems you want to use "." for the working DIR, which is fine.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).