ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: DennisMadsen on July 12, 2011, 04:42:04 PM

Title: Change time without creating a new file?
Post by: DennisMadsen on July 12, 2011, 04:42:04 PM
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.
Title: Re: Change time without creating a new file?
Post by: Phil Harvey on July 12, 2011, 07:30:36 PM
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