To Find Height and Width of Image in Rails

110 views Asked by At

I'm using carrierwave and mini_magick gem to find image resolution.

def image        
        pic = MiniMagick::Image.open(self.picture.path)
        pic.width; pic.height;           
        return pic         
end  

But I'm getting this error

Errno::ENOENT (No such file or directory) ):

0

There are 0 answers