I’ve captured some photos while simultaneously recording the track in a Garmin .fit file. Now I’d like to geotag all the photos using those tracks. As Darktable needs .gpx files, I tried to convert the .fit files using the following small script. This fails however. Does anybody know how to correctly geotag photos in Darktable from .fit files?
for file in ./*.fit; do
gpsbabel -i garmin_fit -f "$file" -o gpx -F "$file.gpx"
This however fails: Darktable reports that no photos match the generated gpx file. The tracks each span an entire day, so it would surprise me were any difference between time zones be the problem. The generated gpx files open without a hitch in map apps.
Got it working, at least partially. Some photos are geotagged correctly (e.g. a photo taken at a specific viewpoint, is marked exactly at that point). But a whole lot are not geotagged at all, I presume because they fall between waypoints recorded. Is it possible to use something like interpolation to get all photos geotagged?