Change time without creating a new file?

Started by DennisMadsen, July 12, 2011, 04:42:04 PM

Previous topic - Next topic

DennisMadsen

Right now I'm using the following command to change the time of my images:
exiftool -AllDates+=1 Images/

When I do that, a new file is created with recalculated EXIF times and the original files is stored in *_original. Is there a way to let the script change the EXIF tags in the original file - instead of creating a new file? The new file has the current time and date as "Data modified" on the file meta data - I would like to keep the original date meta-data on the file.

Phil Harvey

Hi Dennis,

It sounds like you want to add the -P (preserve file modification date/time) and -overwrite_original (self-explanatory) options to your command.  Make sure you use capital -P because lower-case -p is used for something else.

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