Skip to content

Python/Folium script to generate leaflet maps from a folder of geotagged images

License

Notifications You must be signed in to change notification settings

labtec901/exif-mapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

exif-mapper

Surprisingly, there doesn't seem to be any effective free way of plotting folders of geotagged images on a map. Adobe Lightroom can sort of do it, and some random payware apps can do it poorly, but I wasn't able to find anything I wanted, so I made this.

This short script takes a folder or folder tree which contains geotagged images, and extracts the latitude and longitude GPS coordinates, and then plots these points on a leaflet map, including on-click popups to preview the image, see the image's name, and open the image location in Google Maps as well.

Popup functionality

2022-05-02_14-12-43_chrome

Plotting lots of points

2022-05-02_14-20-23_chrome

Important!

  • This script requires the folium, GPSPhoto, and pandas python packages.
  • This script uses an in development function of folium, which as of this writing is still part of an open pull request which you can see here. You must replace the default folium/map.py file from your pip-installed folium instance with the one given in this pull request. This additional function prevents your browser from crashing when it tries to load every pop-up image at once when the page loads. Using this tweak I can generate maps of more than 11,000 photos, which will instantly crash your browser without this change.

About

Python/Folium script to generate leaflet maps from a folder of geotagged images

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages