Writing / Reading GPS coordinates in photo's EXIF by Python.
Project description
GPS-EXIF
Writing / Reading GPS coordinates in photo's EXIF by Python.
Install
pip install gpsexif
APIs
- setGPS
from gpsexif import setGPS
img_path = "input/tyg.jpg" # use your image path
save_dir = "output"
loc = [114.353458, 30.53624997, 363.5164]
setGPS(img_path, loc, save_dir)
- getGPS
from gpsexif import getGPS
img_path = "output/tyg.jpg" # use your image path
loc = getGPS(img_path)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
gpsexif-0.3.tar.gz
(3.5 kB
view hashes)
Built Distribution
gpsexif-0.3-py3-none-any.whl
(4.1 kB
view hashes)