I am using this command to adjust createdate on my .mov files so that Google Photos will put them in the correct chronological order:
exiftool '-createdate<creationdate' -if '($filetype eq "MOV")' <dir>
It works well, but it makes a copy of the original files, and the newly modified versions have "Date Modified" and "Date Created" values of the time the new file was created.
How can I change my command so that new files are not created? I always work on copies and I would rather the "Date Modified" and "Date Created" values didn't change.
Thanks!
Add -P (http://www.exiftool.org/exiftool_pod.html#P--preserve) to the command to prevent change of the Date Modified. On Mac, you'll need to add -overwrite_original_in_place (https://exiftool.org/exiftool_pod.html#overwrite_original_in_place) to prevent change to the Date Created, though you won't get a backup file if you do. You may not need to keep the the Date Created for Google photos, though.
Thank you! This worked perfectly, and takes a step out of my workflow. Much appreciated!
On Mac, here is an alternative way to preserve the file system creation date/time which allows you to keep the "_original" backups:
exiftool -tagsfromfile @ -mditemfscreationdate ...
And add -P to also preserve the file system modification date/time.
- Phil