Skip to content
Extract GPS info from all images in a directory
Ruby
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci
app
spec
.gitignore
.rspec
Gemfile
README.md
application.rb

README.md

Preface: This is my solution to a coding challenge I was given by an employer for a Senior Ruby Developer position. Their response was that I nailed it. At the in-person interview, we reviewed my code against their solution, and the structure was nearly identical, showing I followed the same development principles their developers had used with Test-Driven Development.

CircleCI

Description

Finds all images in a given directory, extracts their GPS info, then dumps that along with the filename into a CSV or HTML file.

Usage: application.rb [options]
        --html                       Output in HTML format (default is CSV)
    -o, --output-file=FILE           File to output to. (Default: 'results.{csv,html}')
    -d, --target-directory=DIR       Target directory to scan for JPG files. (Default: current directory)
    -h, --help                       Prints this help

Examples

Scan all the images in the current directory and output them to results.csv in CSV format

ruby ./application.rb

or

./application.rb

Scan all the images in /some/directory and output the results to ~/results.html

./application.rb -d /some/directory --html -o ~/results.html 
You can’t perform that action at this time.