Skip to content

Automatically tag your photos based on its GPS coordinates

License

Notifications You must be signed in to change notification settings

fg1/exif_revgeo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

exif_revgeo: Reverse geocode your photos

This utility reads the GPS coordinates from your photos, reverse geocode them, and write the result to the appropriate EXIF city/country location tags.

Installation

This script is based on exiftool for the EXIF operations and mugiss for the reverse geocoding.

Once both tools are installed, simply clone the repository:

$ pip install --upgrade https://github.com/fg1/exif_revgeo/archive/master.tar.gz

Usage

usage: exif_revgeo [-h] [--exiftool-bin EXIFTOOL_BIN] [--rd-args RD_ARGS]
                   [--wr-args WR_ARGS] [-o] [-d]
                   path

Add city and country in EXIF based on GPS coords

positional arguments:
  path                  files or folder to process

optional arguments:
  -h, --help            show this help message and exit
  --exiftool-bin EXIFTOOL_BIN
                        exiftool binary to use
  --rd-args RD_ARGS     exiftool read arguments
  --wr-args WR_ARGS     exiftool write arguments
  -o, --overwrite-tags  Overwrite existing tag values
  -d, --dry-run         Do not perform any file modification

Examples:

# Apply on all the jpg files in the current directory:
$ exif_revgeo *.jpg

# Apply on all the image files of a given directory:
$ exif_revgeo ~/Pictures/2015/10

# Apply recursively on all the image files contained in a directory:
$ exif_revgeo --rd-args='-r' ~/Pictures

About

Automatically tag your photos based on its GPS coordinates

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages