Skip to content

Instantly share code, notes, and snippets.

@aliou
Created December 19, 2012 16:08
Show Gist options
  • Save aliou/4337871 to your computer and use it in GitHub Desktop.
Save aliou/4337871 to your computer and use it in GitHub Desktop.
require 'exifr'
img = EXIFR::JPEG.new('path-to-image')
lat = img.gps.latitude
long = img.gps.longitude
puts "Latitude : #{lat}."
puts "Longitude : #{long}."
puts "#{lat}, #{long}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment