Skip to content

Latest commit

 

History

History
11 lines (6 loc) · 1.01 KB

README.md

File metadata and controls

11 lines (6 loc) · 1.01 KB

photo_to_map

Example Jupyter Notebook to read a directory of photos (jpgs) with location meta data and add popups for each photo to a leaflet map.

photo_to_map.mp4

Acknowledgements / Attribution

I got the idea for this notebook after listening to Christopher Bailey on the Real Python Podcast episode 45 where I learnt that not only can Pillow edit and convert images but read the EXIF meta data too.

I copied the functions for extracting the latitude and longitude from this gist and one of its forks. I used some example code from this ipyleaflet issue comment for how to convert the image to binary format to embed in the popup html.