1 2 3 4
This gem allows you to find the size of an image using Ruby. WWW: http://imagesize.rubyforge.org/