Geotag your photos from a GPX track.
Go to file
Cyberes d33d8f61fb minor 2024-03-15 18:38:36 -06:00
lib minor 2024-03-15 18:38:36 -06:00
.gitignore add code 2024-03-15 16:12:30 -06:00
LICENSE Initial commit 2024-03-15 14:30:40 -06:00
README.md add code 2024-03-15 16:12:30 -06:00
main.py add code 2024-03-15 16:12:30 -06:00
requirements.txt add code 2024-03-15 16:12:30 -06:00

README.md

gpx-to-image-tags

Geotag your photos from a GPX track.

This is a simple script used to add geotags (geographic metadata locating where the photo was taken) to images taken by a non-GPS camera.

It reads the time a photo was taken and then finds the closest point in the GPX track.

Install

  1. pip install -r requirements.txt

Use

python3 main.py <path to the folder containing your photos> <path to GPX file>

You might need the --timezone argument. Double check the EXIF times are correct via identify -verbose.


Optional Arguments:

  • --max-diff: Maximum allowed difference in seconds between image timestamp and track point. Default: 300 (5 minutes).
  • --timezone: Three letter timezone the photos are in (e.g. EST). Default: auto-detect your local timezone.