Replace creation date with modification date for a whole folder of photos

Started by QNut, July 07, 2020, 03:58:53 AM

Previous topic - Next topic

QNut

Hi Experts,
recently I've copied thousend of pictures to a new HDD. And with this action all pics have gotten a new creation date (25/06/2020) - but anyway: The modification date is still the original one (e.g. 13/04/2014). I've imported all the pictures to MAC Fotos and there they are sorted by creation date (but as you can imagine: No Sorting at all because of the new wrong creation date).

So my idea: Is it possible to replace for all pictues the creation date with modification date with the help of the EXIFtool? Can you help me with the command, please?

Thanks a lot,
Stefan

Phil Harvey

Hi Stefan,

A command like this may do what you want:

exiftool "-filecreatedate<filemodifydate" -ext jpg -r DIR

But to write FileCreateDate requires the Apple "setfile" utility on the Mac.  You can use xcode-select --install on the command line to install this if you don't have it.

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