From: Benjohn Barnes Date: 2009-02-04T08:02:48+09:00 Subject: exifr - Ruby EXIF reading library I've just made use of the EXIFR library. The docs are here: http://exifr.rubyforge.org/api/index.html It's splendid, and highly recommended as absolutely as simple as can be, but completely effective. Thank you very much "R.W. van �t Veer". I particularly like that it's (I assume?) pure ruby. It certainly didn't seem to do anything unusual during: sudo gem install exifr Why do I need this? I've just got 550 photos back from an online printing outfit, but to my dismay, they have stopped labelling the back of prints with photo's capture time (from EXIF meta-data). All they have now is the completely arbitrary filename. No matter! EXIFR to the rescue! A quick script in irb along the lines of: f = Dir.glob('*.jpg') table = f.map {|file_name| [file_name, EXIFR::JPEG.new(file_name).exif.date_time_original]} table.each {|name, date| puts "#{name} #{date}"}; nil And I've got a nice ASCII table from which I can quite quickly label the photos by hand. Hopefully by a nice warm fire with a cup of cocoa. All the best, Benjohn