Skip to content

Instantly share code, notes, and snippets.

@pnorman
Last active August 29, 2015 14:03
Show Gist options
  • Save pnorman/0c12c66b07d9cfed675c to your computer and use it in GitHub Desktop.
Save pnorman/0c12c66b07d9cfed675c to your computer and use it in GitHub Desktop.
Toolchain for geotagging photos
# Copy images into suitable named directory indicating date and trip
export GEM_HOME=/home/pnorman/osm/gpx2exif
# Sharpen and fix colours
mogrify -unsharp 8x1.7 -normalize *-*/IMG_*.JPG
# Adjust times. Reverse sign from JOSM. My camera drifts so that I need a positive time in JOSM, so this tends to be -= for me.
exiftool "-DateTimeOriginal-=0:0:2" "-CreateDate-=0:0:2" *-*/*.JPG
# Geotag
~/osm/gpx2exif/bin/geotag -x "Copyright=Copyright CC0 Paul Norman" \
-g "2014-06-27 20.00.34 Auto.gpx" 01*/*.JPG
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment