Geotag Photos from a GPS Track
Scenario: your phone, watch or GPS logger recorded a GPX track while you were out with the camera, and you want every photo placed where it was taken.
This guide is for you if: your camera doesn’t record GPS, but a phone app, a watch or a GPS logger recorded where you were, and you have its recording as a .gpx file. The camera files show a grey “no data” icon in the GPS column. You want each photo to get the position the track has for the moment it was taken.
New in version 1.03. A GPS track is a list of positions with the time each was recorded. Media Location Tagger looks up every photo’s capture time in the track and proposes the position you were at. The proposals are previews: nothing is written to your files until you click Apply Track Positions.
In the app: the workflow guide under the view switcher shows the same steps as I have a GPS track from my phone or logger and ticks them off as you go.
Step 1: Add your files
Drag the photos, or the folder they are in, into the file table or onto the Dock icon. Check the GPS and IPTC columns to see which files already have coordinates and place names; hover over an icon to read what it means. Adding files and previewing positions does not change them.
Step 2: Load the GPS track
Choose the GPS Tracks tab in the view switcher and click Load GPS Track… in the sidebar, or choose GPS Tracks → Load GPS Track… (⇧⌘T). Select the .gpx file; its path is drawn on the map and the map zooms to it. You can also drop a .gpx file on the file list in any view, or anywhere in the GPS Tracks tab.
- Several tracks. Load as many as the trip needs, or drop a folder of .gpx files to load them in one go. Each track gets its own colour. Where two recordings overlap in time, the one higher in the sidebar’s GPS Tracks list is used; drag the rows to change the order. The ring around a proposed position has the colour of its track.
- The wrong file. Select it in the list and click Remove. Unticking its Use box keeps it in the list but takes it out of the matching. Neither touches your photos.
- A route without times. A planned route, or an export that left the times out, is drawn on the map but cannot place photos by capture time. Export the recorded track from the app that made it if you can; otherwise use the path as a visual guide and place the photos with pins, as in adding locations from scratch.
Step 3: Check where the photos land
The GPS Tracks tab shows three things at once:
- the map, with the track as a line and each photo’s proposed position as a translucent marker;
- the file list, with a Match column that says how each position was found: Interpolated between two recorded points, Nearest fix when the photo was taken shortly before or after the recording, In gap or Before track when there is no position to offer;
- the time strip at the bottom, with the recordings as bars and one row of photo ticks per camera. A tick that sits on a bar was taken while the track was recording.
Check a few photos from each camera. Hover over a tick on the time strip to see the photo and its spot on the map, and double-click a file in the list to zoom to its position (more on moving around the map). Photos that already have GPS coordinates, such as phone photos, keep them and show as solid markers; where you shot the same scene with both, the camera’s translucent marker should land on the phone’s.
If the photos miss the track by a whole number of hours, the time strip says so and offers a Shift button. Read its explanation first: the usual cause is a camera left on home time, and the shift then corrects the camera’s time zone and leaves the clock alone. Check the positions again afterwards.
Step 4: Fix any remaining position errors
If the positions are right, go on to step 5.
If they are consistently off, a little before or after where you were, first make sure you loaded the right track, then follow the camera’s clock was wrong: you show the app where one photo was taken, and it works out the correction. Each camera has its own clock in the sidebar’s Cameras tab, so a correction moves that camera’s photos only.
- A correction you confirmed on an earlier trip appears under the camera’s row on the time strip; click Apply Preset if it still holds.
- On a trip of several days, check photos from the first day and the last. If the trip crossed a time zone or a daylight-saving change, check whether the camera’s clock was adjusted on the way.
Step 5: Apply the positions
Select the photos you want to write and click Apply Track Positions in the sidebar. The proposed coordinates are written to the selected files and their markers turn solid.
- Group by group. The count under the file name in the sidebar is a button that selects the current group of matched photos, and the arrows next to it step to the next group, so the routine is: arrow, glance at the thumbnails, Apply. See selecting groups of files.
- Everything at once.
GPS Tracks→Apply Track Positions to All Matched Items…writes every match after a confirmation. - Existing coordinates are kept. Apply fills in files that have no position. Hold ⌥ and the command becomes Overwrite with Track Positions.
- Photos the track cannot place. A photo taken in a gap in the recording, or well before or after it, gets no position rather than a guess. These are collected under Items Needing Review in the pop-up above the file name. Select them, drop a pin where they were taken, right-click the pin and choose Apply Pin Location to Selected Items. To set a doubtful match aside, use
GPS Tracks→Ignore Track Position. - Changed your mind? If you correct the clock or the track after applying, Update Track Positions rewrites the positions already written.
GPS Tracks→Revert Track PositionsandEdit→Undo(⌘Z) put the files back as they were, provided they have not been changed since.
Step 6: Add the place names
The photos now have coordinates, and the built-in database proposes a Sub-location, City, Province/State and Country for each of them. Choose the Items tab, review the grey suggestions, select the photos and choose Location → Apply All Proposed IPTC Location Tags. Each file gets its own names in its blank fields; existing names are kept. Applying the proposed place names describes the commands in detail.
The suggestions are already there while you are still previewing: they follow the track position before any coordinates are saved. Applying names and applying GPS coordinates remain two separate actions.
Notes
- Where a .gpx file comes from. Fitness and hiking apps, GPS watches and dedicated loggers all export GPX; look for Export or Share on the recorded activity. A recording of the whole day works best.
- Time zones. GPX times are in UTC. Cameras record local time, usually without saying which zone, so the app reads each camera’s times in a zone you can see and change in the Cameras tab. The Mac’s own time zone is never used silently.
- Altitude. The track’s elevation is written only when Write altitude from track is ticked in the sidebar’s Matching tab. An altitude already in a file is never removed.
- The matching limits. The Matching tab also sets how long a silence in the recording counts as a gap, and how far outside the recording a photo may still take the nearest recorded point. The defaults are 30 minutes each.
- Next trip with the same camera: the Cameras tab remembers its clock.