i wanna generate thumbnail from image
i found RMagick and found this code but i can’t run it, so please anyone help me in this issue.
img = Magick::Image.read
width, height = 100, 100
thumb = img.resize(width, height)
but it throws this exception
unable to open image `/images/img2.jpg': No such file or directory thanks