3rd party Fog of World* toolbox
This Python tool extracts GPS data from images (JPG, HEIC and others), converts them into GPX tracks, and prepares them for import into the Fog of World app. It might be helpful if a user wishes to retrieve their "old" tracks from the albums (i.e. the tracks before they met Fog of World etc.).
Sample: Dots retrieved from iCloud album's EXIF and imported into Fog of World
- Supports JPG and HEIC image formats.
- Extracts GPS metadata from images.
- Converts GPS data into GPX waypoints.
- Combines waypoints into GPX tracks.
- Outputs a GPX file ready for import into Fog of World.
- Command-line interface for easy batch processing.
-
Clone this repository:
git clone https://github.com/garfieldw33/Exif-GPS-to-GPX.git cd Exif-GPS-to-GPX
-
Install the required Python packages:
pip install gpxpy GPSPhoto pillow_heif geopy
If preferred, you may open the Jupyter Notebook to review and run the scripts:
FoW_gpx_tool.ipynb
or, run the script from the terminal:
python fow_gpx_converter.py -i <input_folder> [-o <output_folder>]
-i
,--input
: Path to the folder containing images (required).-o
,--output
: Path to the folder where the GPX file will be saved (optional). Defaults to the current working directory.
# Save GPX to a specific folder
python fow_gpx_converter.py -i test_images -o waypoints
# Save GPX to the current directory
python fow_gpx_converter.py -i test_images
After running, the script will generate a file named:
tracks_to_import.gpx
You can import this file into the Fog of World app to visualize your travels.
tracks_to_import.gpx
: The final GPX file containing track segments based on image locations.
This project is licensed under the MIT License.