to change the date based on exif data since export from Mac Photos shows date of export using exiftool
-
28-05-2021 - |
Question
I used the following to change the Date Created to the actual date the photo was taken because exporting from Photos showed the date of export. "for file in *; do SetFile -d "$(exiftool -p '$CreateDate' -d '%m/%d/%Y %H:%M:%S' "$file")" "$file"; done"
I got the following warning: "Warning: [minor] Adjusted MakerNotes base by 46 - IMG_1369.JPG" -- what does this mean?
I found the above suggestion at this thread: Export from Mac Photos app while keeping date created data?
Also what is the cmd to change "Date Modifed" using exiftool?
Thanks.
Solution
As a test, I exported six photos as JPG files from Photos, on macOS High Sierra, into a new folder.
Then in Terminal I change directory to the new folder containing the exported photos and ran the following command to change both the create and modify date/time from the EXIF info:
for f in *; do SetFile -d "$(exiftool -p '$CreateDate' -d '%m/%d/%Y %T' "${f}")" -m "$(exiftool -p '$ModifyDate' -d '%m/%d/%Y %T' "${f}")" "${f}"; done
The prompt returned without error, and the exported files now have the original create and modify date/time.