From: Timothy Hunter Date: 2005-04-12T08:04:38+09:00 Subject: Re: RMagick question Joe Van Dyk wrote: > Thanks for all the responses (check out www.jerrymahan.com for the result). > > Another RMagick question: > > I'm trying to get the width and height (in pixels) of an image. I've > searched the docs and the closest I can find to what I want is the > geometry string. But the string is something like > "3488" or something weird like that. > Isn't there an easier way to get the width/height of an image? Sure. Use the #columns and #rows attributes of the image. See http://www.simplesystems.org/RMagick/doc/comtasks.html#info for an example.