Getting image dimensions in Ruby

Tags: 

Quick tip - if you're just using ImageMagick to get dimensions of images, try using image_size instead, it's written in Ruby, works well, and installs really quickly, rather than the five years it seems rmagick to compile & install.