RMagick-Is it possible to read the resolution of the image?

Hi,

Is it possible to read the resolution of the image when the user
uploads
a image file?
I was going thru. RMagick docs, but i could not find anything.
Any help is appreciated !!!

Regards,
Ashwin Kumar

Ashwin Kumar wrote:

Use the x_resolution and y_resolution attributes:
http://www.simplesystems.org/RMagick/doc/imageattrs.html#x_resolution