Topic: Getting image width with RMagick

If I have a file field for image uploads, how do I get the width and height of the image with RMagick? As simple as possible and not via any plugins.

Re: Getting image width with RMagick

Can I use Magick::Image.read(file) on the file being uploaded or do I use it on the file I saved on the server?

Re: Getting image width with RMagick

Got it working, but by reading the actual file from where I saved it. Is it possible to do it before?