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.
Clone the repo:
$ cd gps_extractor
$ bundle install
$ ruby lib/gps_extractor.rb
Usage: ruby lib/gps_extractor.rb [options] [/target/folder/path]
ruby lib/gps_extractor.rb
ruby lib/gps_extractor.rb -v
ruby lib/gps_extractor.rb /home
ruby lib/gps_extractor.rb -html /home
--help - provide brief help notice
-html - outputs an HTML document rather than a CSV
-v, --verbose - outputs additional information as the script runs
The output file is created in the pwd/output, which requires write permission.
{folder_name}_{timestamp}.{csv|html}
Circular symbolic links are not handled
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.
The gem is available as open source under the terms of the MIT License.
Everyone interacting in the GpsExtractor project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.