DateTimeOriginal

Started by slhuyton, May 20, 2010, 02:33:19 PM

Previous topic - Next topic

slhuyton

I am trying to change the DateTimeOriginal tag in some NEF files where I somehow the date of the camera was set to 2007 instead of 2010.

This is the command as I want to add 3 years:

exiftool DateTimeOriginal+='3:0:0 0:0:0' DIR

I have the following NEF file in the subdirectory DIR:

DSC_3508.NEF

And I get the following response:

1 directories scanned
1 image files read

but the Date/Time Original    is still ---->          : 2007:05:02 16:57:52.15

Does anyone have any ideas?

Stuart


Christian Etter

Stuart,
not sure if it is a typo in your post, but you should add a '-' in front of the attribute name. Also, due to the single quotes you might have to put the whole argument in double quotes so it will be parsed as a single argument.
exiftool "-DateTimeOriginal+='3:0:0 0:0:0'" DIR

Christian

Phil Harvey

Christian is correct about the missing '-', but if you are in windows you should do this (just one set of double quotes):

exiftool -DateTimeOriginal+="3:0:0 0:0:0" DIR

- 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 ($).

slhuyton

Thanks for the help.  It all works now.

Stuart