copying DateTime to DateTimeOriginal tag

Started by xian, February 12, 2012, 05:44:14 PM

Previous topic - Next topic

xian

Hi!

I'd like to overwrite the DateTimeOriginal and DateTimeDigitized tags by the value of DateTime in files in a directory. How can I do that?

Thank you,
K

Phil Harvey

Hi K,

The syntax is

exiftool "-DSTTAG<SRCTAG" FILE

Where DSTTAG is the destination tag name, SRCTAG is the source tag name, and FILE is one or more file and/or directory names.

See FAQ number 2 if you have questions about the tag name.

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

xian

Hello Phil,

thanks for the tip.

The command exiftool "-DateTimeOriginal<ModifyDate" "-CreateDate<ModifyDate" "-ModifyDate>FileModifyDate" .
did the trick and updated the messed up tags, as well the date of the files in the current directory.

Great tool.

K.