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

**URL:** <https://www.ruby-forum.com/t/rmagick-is-it-possible-to-read-the-resolution-of-the-image/107686>\
**Category:** Ruby\
**Created:** [June 25, 2007, 11:31am UTC](https://www.ruby-forum.com/t/rmagick-is-it-possible-to-read-the-resolution-of-the-image/107686 "2007-06-25T11:31:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ashwin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/f08c70/32.png) [@ashwin](https://www.ruby-forum.com/u/ashwin)\
**Post date:** [June 25, 2007, 11:31am UTC](https://www.ruby-forum.com/t/rmagick-is-it-possible-to-read-the-resolution-of-the-image/107686/1 "2007-06-25T11:31:08Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![ashwin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/f08c70/32.png) [@ashwin](https://www.ruby-forum.com/u/ashwin)\
**Post date:** [June 25, 2007, 1:32pm UTC](https://www.ruby-forum.com/t/rmagick-is-it-possible-to-read-the-resolution-of-the-image/107686/2 "2007-06-25T13:32:32Z")

</div>

Ashwin Kumar wrote:

> 

Use the x\_resolution and y\_resolution attributes:  
[http://www.simplesystems.org/RMagick/doc/imageattrs.html#x\_resolution](http://www.simplesystems.org/RMagick/doc/imageattrs.html#x_resolution)
