rmagick image size (dimensions)

How to determine the size of an image in RMagick? I spent over 10 minutes figuring it out :) Example:

require 'RMagick'
img=Magick::Image.read("IMG.PNG").first
img.rows
img.columns

Posted by wojtek Sat, 24 Jan 2009 14:53:00 GMT




Comments

Leave a response

  1. foresth about 1 year later:

    Thanks!

    Freaking insane, btw :).

Leave a comment