Skip to content

Instantly share code, notes, and snippets.

@adam-zethraeus
Created August 16, 2023 09:10
Show Gist options
  • Select an option

  • Save adam-zethraeus/0c1ae48234603a3fc192c87cb853d583 to your computer and use it in GitHub Desktop.

Select an option

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 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