Created
August 16, 2023 09:10
-
-
Save adam-zethraeus/0c1ae48234603a3fc192c87cb853d583 to your computer and use it in GitHub Desktop.
correcting google photos takeout/export exif dates using the paired json files
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # this relies on photos from google takeouts each being exported along with a paired json file | |
| # (photo.jpg.json <-> photo.jpg) and that this json file has a timestamp | |
| fd .jpg$ -x bash -c "exiftool -AllDates=\`cat {}.json | jq '.creationTime.timestamp' | xargs -I{} date -r {} -u +%Y-%m-%dT%H:%M:%SZ\` {}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment