A pure ruby image identification library.
gem install identify
BMP, PNG, JPG, GIF, XPM, PPM, PGM, PNM, PBM, XBM, TIFF
require 'identify'
p Identify.image File.binread("test/images/test.png", 1024)
{:width=>253, :height=>178, :format=>"png"}
Tests require a local installation of ImageMagick and identify
to be in your $PATH
Channel type, Depth, Colorspace and Resolution.
http://rubygems.org/gems/imagesize
MIT