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
···
--
Posted via http://www.ruby-forum.com/.
Ashwin Kumar wrote:
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
Use the x_resolution and y_resolution attributes:
http://www.simplesystems.org/RMagick/doc/imageattrs.html#x_resolution
···
--
RMagick OS X Installer [http://rubyforge.org/projects/rmagick/\]
RMagick Hints & Tips [http://rubyforge.org/forum/forum.php?forum_id=1618\]
RMagick Installation FAQ [http://rmagick.rubyforge.org/install-faq.html\]