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
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
Thanks!
Freaking insane, btw :).