Prints photos with location and EXIF data.
EXIF GPS location information is resolved by OpenStreetMap (default) or Google Geocoding API.
- https://python-xmp-toolkit.readthedocs.io/en/latest/
- https://libopenraw.freedesktop.org/wiki/Exempi/
- https://www.oclc.org/developer/news/2016/making-sense-of-linked-data-with-python.en.html
- https://www.tutorialspoint.com/python3/python_xml_processing.htm
- https://forums.adobe.com/thread/1529360
- https://github.com/drewsberry/gpsextract
- https://gist.github.com/snakeye/fdc372dbf11370fe29eb
- https://developers.google.com/maps/documentation/geocoding/start
- https://github.com/geopy/geopy
- https://chrisalbon.com/python/data_wrangling/geocoding_and_reverse_geocoding/
python3 -m venv venv
. ./venv/bin/activate
brew install Exempi
pip install -r requirements.txt
Place images in the _TestData
folder (sub-folders supported) and convert iPhone HEIC files to JPEG if needed.
https://developers.google.com/maps/documentation/geocoding/get-api-key
Create file config.yml
with the following contain: -
---
google_api_key: "<GOOGLE_API_KEY>"
Where
<GOOGLE_API_KEY>
is replaced with your Google API Key. SetUSE_GOOGLE_API
toTrue
in scriptprint_exif_info.py
to use it.
python print_exif_info.py
python -m cProfile -s tottime print_exif_info.py | tee profile.log
deactivate
If VSCode has issues debugging try setting MULTI_PROCESSING
to False
in script print_exif_info.py
.