Image Information Extraction
Image Information Extraction
imageInfo.rb
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 books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.