0.0
No commit activity in last 3 years
No release in over 3 years
A command line application that recursively reads all of the images from the supplied directory of images, extracts their EXIF GPS data (longitude and latitude), and then writes the name of that image and any GPS co-ordinates it finds to a CSV file. Results are written to a file in the pwd as the scan runs. CSV files will be produced by default, use -html for HTML files instead. If the app is not installed as a gem, HTML output requires configuration.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.17
>= 1.3.4, ~> 1.3
~> 10.0
~> 3.0
 Project Readme

GpsExtractor

A command line utility that finds all JPEGs inside of a folder recursively and extracts their EXIF GPS data if present. It will default to scanning the pwd/output unless a directory is provided as an argument.

Results are written to a file in the pwd as the scan runs. CSV files will be produced by default, use -html for HTML files instead. If the app is not installed as a gem, the HTML output requires configuration when being called from outside the app folder.

Installation

Clone the repo:

$ cd gps_extractor
$ bundle install
$ ruby lib/gps_extractor.rb

SYNOPSIS

Usage: ruby lib/gps_extractor.rb [options] [/target/folder/path]

Usage

 ruby lib/gps_extractor.rb
 ruby lib/gps_extractor.rb -v
 ruby lib/gps_extractor.rb /home
 ruby lib/gps_extractor.rb -html /home

OPTIONS

--help - provide brief help notice

-html - outputs an HTML document rather than a CSV

-v, --verbose - outputs additional information as the script runs

OUTPUT

The output file is created in the pwd/output, which requires write permission.

{folder_name}_{timestamp}.{csv|html}

BUGS

Circular symbolic links are not handled

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/aashishsaini/gps_extractor. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.

License

The gem is available as open source under the terms of the MIT License.

Code of Conduct

Everyone interacting in the GpsExtractor project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.