Replace EXIF ModifyDate with EXIF CreateDate

Started by helzayat, September 26, 2015, 06:30:48 PM

Previous topic - Next topic

helzayat

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.

helzayat

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.

StarGeek

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.
"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype