Skip to content

Instantly share code, notes, and snippets.

@phybros
Last active February 19, 2022 21:20
Show Gist options
  • Save phybros/edf2a948ca7fc1b0483dde178f8c8d45 to your computer and use it in GitHub Desktop.
Save phybros/edf2a948ca7fc1b0483dde178f8c8d45 to your computer and use it in GitHub Desktop.
Fix photo metadata from Google Photos to Apple Photos import
exiftool -r -d %s -tagsfromfile "%d/%F.json" \
"-GPSAltitude<GeoDataAltitude" \
"-GPSLatitude<GeoDataLatitude" \
"-GPSLatitudeRef<GeoDataLatitude" \
"-GPSLongitude<GeoDataLongitude" \
"-GPSLongitudeRef<GeoDataLongitude" \
"-Keywords<Tags" \
"-Subject<Tags" \
"-Caption-Abstract<Description" \
"-ImageDescription<Description" \
"-DateTimeOriginal<PhotoTakenTimeTimestamp" \
-ext "*" \
-overwrite_original -progress \
--ext json <DirToProcess>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment