Skip to content

Instantly share code, notes, and snippets.

@bjorkqvist
Created May 29, 2019 22:41
Show Gist options
  • Save bjorkqvist/2bb661e3db6f83dc5306c691af1da99c to your computer and use it in GitHub Desktop.
Save bjorkqvist/2bb661e3db6f83dc5306c691af1da99c to your computer and use it in GitHub Desktop.
Export images and video from Google Photos and adjust metadata
Export images and video from Google Photos and adjust metadata
-- download images from
takeout.google.com/settings/takeout
-- unzip
- flatten to new dir takeout2
exiftool -q -q -r -d takeout2 "-directory<filemodifydate" "-directory<createdate" "-directory<datetimeoriginal" Takeout
--update filenames with camera and date? make recursive?
exiftool -q -q -r -d takeout2 "-directory<filemodifydate" "-directory<createdate" "-directory<datetimeoriginal" Takeout
-- update exif with gps and date
exiftool -r -d %s -tagsfromfile "%d/%F.json" "-GPSAltitude<GeoDataAltitude" "-GPSLatitude<GeoDataLatitude" "-GPSLatitudeRef<GeoDataLatitude" "-GPSLongitude<GeoDataLongitude" "-GPSLongitudeRef<GeoDataLongitude" "-DateTimeOriginal<PhotoTakenTimeTimestamp" -ext jpg -overwrite_original .\1970-tal_Inscannat\
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment