Image Information Extraction

Image Information Extraction


There is a wealth of information about a digital picture stored within the file itself. Some of the picture's data, such as colors, resolution, exposure, and flash settings, can be useful as you learn your craft. This script will help you pull the data out of your pictures for further analysis, giving insight into your best (and worst) shots.

The Code

 require 'exifr'
 include EXIFR

 unless ARGV[0] and File.exists?(ARGV[0]) puts "\n\n\nYou need to specify a filename: ruby imageInfo.rb ...

Get Wicked Cool Ruby Scripts now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.