2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2024-11-21 23:01:52 +00:00
This commit is contained in:
Philip Sargent 2023-10-19 18:37:27 +03:00
parent c4da7f6fa7
commit 0874ca38f4

View File

@ -1,12 +1,18 @@
import os
import folium
from pathlib import Path
from PIL import Image, ExifTags
# Define function to extract latitude and longitude from photo
"""To do
- create gpx file for adding in to existing GPSprune maps
- omit all the thumbs
- include *.jpeg
- can we also do other formats than JPG ?
- we want popup that hotlinks to URL of the photo of course
"""
def get_coordinates(photo_path):
"""Extracting EXIF data from jpg files requires an external package because teh EXIF standard
"""Extracting EXIF data from jpg files requires an external package because the EXIF standard
is interpreted differently by the many different implementations of the JPG file format
"""
try: