Sign inSign up

p3dda/fit2geo

By p3dda

•Updated about 5 years ago

Geotag photos from FIT activity files

Image
0

1.5K

p3dda/fit2geo repository overview

⁠fit2geo

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.

⁠Usage example:

python3 main.py --fitfile ./my_garmin_recording.fit --photo ./100MEDIA
⁠Complete usage
python3 main.py -h
usage: main.py [-h] [--fitfile FITFILE] [--photo PHOTO] [--timezone TIMEZONE] [--backup]

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

⁠Docker usage

docker run --rm -v ./my_garmin_recording.fit:/activity.fit -v ./100MEDIA:/photos p3dda/fit2geo 

Tag summary

Content type

Image

Digest

Size

47.2 MB

Last updated

about 5 years ago

docker pull p3dda/fit2geo