ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: helzayat on September 26, 2015, 06:30:48 PM

Title: Replace EXIF ModifyDate with EXIF CreateDate
Post by: helzayat on September 26, 2015, 06:30:48 PM
I would like to replace the EXIF ModifyDate value for many files with the EXIF CreateDate value. I can do this in Exiftool GUI using Modify->EXIF:DateTimeEqualize, but I can't do it recursively, only one folder at a time. I have been trying to figure out the command line equivalent as I understand that this will allow me to make the replacement recursively for all the files in a given directory's sub-folders.

If you're curious why I want to do this, these files are all going to Google Photos, which for some obscure reason uses the EXIF ModifyDate as the file creation date for .dng raw files.

Any pointers will be greatly appreciated.
Title: Re: Replace EXIF ModifyDate with EXIF CreateDate
Post by: helzayat on September 26, 2015, 07:23:41 PM
Replying to myself, sorry. After some research/experimentation I arrived at this:
exiftool -ext .dng -r "-modifydate<createdate" DIR
Anything wrong with that? I wouldn't be surprised if there were.
Title: Re: Replace EXIF ModifyDate with EXIF CreateDate
Post by: StarGeek on September 26, 2015, 09:35:17 PM
Looks good to me.  Test it out on a few files first to make sure, but I don't think you'll have a problem.