How to change 'Date taken' to match 'Date created'

Started by grxgghxrpxr, January 28, 2021, 04:40:13 PM

Previous topic - Next topic

grxgghxrpxr

Hello, I'm currently in the middle of changing a massive amount of photos' date modified (by using the command exiftool "-datetimeoriginal<filemodifydate" -P (folder)') which is working great for me.

But, one issue is, I have a bunch of .jpg & .png files that are missing a 'Date taken' - their correct 'Date taken' is on 'Date created' (so I know these), but is there a command to change all of the 'Date taken' to the same as 'Date created'.

Also, will this work with .png files as well or will I have to convert these?

Thanks, Gregg.

StarGeek

Run this on one of the files
exiftool -time:all -G1 -a -s file.jpg

That will list all the time based tags.  Look down the list to figure out which is the correct on and use that name instead of FileCreateDate in your listed command.

For PNG files, you'll want to write to PNG:CreationTime instead of DateTimeOriginal, as that's the only tag that Windows will read for a PNG file.  Or you could convert the PNGs to TIF files and have the full range of metadata read by Windows.
* Did you read FAQ #3 and use the command listed there?
* Please use the Code button for exiftool code/output.
 
* Please include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).

grxgghxrpxr

Thank you for this. Unfortunately, I couldn't find this as the 'Date taken' dates for the files I am referring to doesn't exist.

Would you be able to provide me with a command that helps me add a date taken based on the 'Date created'?
Or, just provide me with what the word is on the command line for 'Date taken'?

Thank you.

StarGeek

The problem is that "Date Taken" is not an actual tag name.  It's a Windows property of the file which can be filled from half a dozen separate tags (see this post).  Which is why you have to look at the exiftool output to figure out what you want to copy from.

It's likely that the "Date Created" is the filesystem timestamp FileCreateDate.  So you can try this for jpegs
exiftool "-AllDates<FileCreateDate" /path/to/files
And for a PNG
exiftool "-PNG:CreationTime<FileCreateDate" /path/to/files
* Did you read FAQ #3 and use the command listed there?
* Please use the Code button for exiftool code/output.
 
* Please include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).

grxgghxrpxr