Skip to content
This repository was archived by the owner on Mar 29, 2022. It is now read-only.

fortes/geo-rename

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

geo-rename

build status codecov Greenkeeper badge

Adds IPTC geographic metadata to photos by reverse geocoding from lat/lon, the following IPTC tags are added:

  • Country
  • State
  • City
  • Location

Installation

  1. Install Node
  2. Install ExifTool
  3. Run npm install -g geo-rename (or yarn global add geo-rename if you have Yarn)

Usage

geo-rename [OPTIONS] [FILES]

Options:

  --cache-folder <path>
  -f, --force
  -h, --help
  --offline
  -q, --quiet
  -s, --skip-backup
  -v, --verbose
  -V, --version

Warning

  • I have not tested this other than with my own photos. May or may not work with your photos. Use at your own risk.
  • Google only allows 15,000 requests per IP per day. Script uses a local cache, but if you have many unique locations and photos, you may run over this limit.

Renaming via exiftool

Fails if one of these isn't defined though:

exiftool nontagged.jpg '-testname<${CreateDate;%Y-%m-%d %H.%M.%S} ${Location;}-${City;}-${State;}-${Country}%-c.%le' 

Changelog

  • 0.0.0: Poor quality code sitting on GitHub for the world to see

Roadmap / TODO

License

MIT

About

Reverse geocode tagging for photos

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors