Mac has broken thousands of 'date taken' dates, how to copy from XMP

Started by lodgepalm, August 15, 2020, 04:51:39 AM

Previous topic - Next topic

lodgepalm

I extract all photos from the Mac/phone on a regular basis, but have now noticed thousands of photoes don't have the right creation date. In Windows and on Amazon Photos, they don't show because it doesn't exist.

I can see the XMP-xmp CreateDate and the XMP-Photoshop DateCreated are correct for all the PNG files that were exported, so my assumption is I need to copy one of those to the PNG CreationTime - and that command line is the one I'm struggling with

I ended up various ways, thinking perhaps this would work, but nothing.

exiftool.exe -p "PNG:CreationTime<XMP-xmp:CreateDate" "Z:\Photos\img_4561.png"
or
exiftool.exe -p "-FileCreateDate<XMP-xmp:CreateDate" "Z:\Photos\img_4561.png"

Clearly I'm missing something critical, do any of you amazing folks know the answer to this conundrum?

Thanks!

Phil Harvey

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

lodgepalm

Ah, one step forward but not there yet


This sets the filecreation date ok but I'm still trying to get the PNG CreationTime to match the XMP:CreateDate, but weirdly the second reads the file but also says file not found! I want to set this so Amazon photos puts them all in the timeline correctly.

exiftool.exe -P "-FileCreateDate<XMP-xmp:CreateDate" image.png
    1 image files updated

exiftool.exe -P "PNG:CreationTime<XMP-xmp:CreateDate" image.png
Error: File not found - PNG:CreationTime<XMP-xmp:CreateDate
======== image.png
ExifTool Version Number         : 12.04
File Name                       : image.png
Directory                       : .
File Size                       : 16 MB
File Modification Date/Time     : 2019:09:20 18:25:27+01:00
File Access Date/Time           : 2020:08:15 11:54:20+01:00
File Creation Date/Time         : 2019:08:18 14:52:28+01:00

lodgepalm

Solved! Thanks. I can now fix all the photos exported from the Mac

It just needed -PNG rather than just PNG

exiftool.exe -P "-PNG:CreationTime<XMP-xmp:CreateDate" image.png