Python Script to geotag a collection of pictures with coordinates coming from a FIT Activity File.
This tool uses Piexif to extract and modify EXIF data in JPEG files, and fitdecode for parsing FIT activity files and extracting locations.
python3 main.py --fitfile ./my_garmin_recording.fit --photo ./100MEDIA
python3 main.py -h
usage: main.py [-h] --fitfile FITFILE --photo PHOTO [--timezone TIMEZONE] [--backup] [--force]
Geotag photos from fit file
optional arguments:
-h, --help show this help message and exit
--fitfile FITFILE, -f FITFILE
FIT file
--photo PHOTO, -p PHOTO
Photo file or directory
--timezone TIMEZONE Photo timezone
--backup, -b Backup original file
--force, -F Override existing location
docker run --rm -v ./my_garmin_recording.fit:/activity.fit -v ./100MEDIA:/photos p3dda/fit2geo