Reputation: 305
I used convert /home/icicle/Desktop/images_284.tif /home/icicle/Desktop/images_284.jpg
from my terminal and it converted the image to jpg format.
But when I used it in my application it gave me the error NoMethodError - undefined method
convert' for #:`
How can I use the convert method in my ruby on rails application?
Upvotes: 0
Views: 1430
Reputation: 622
This guy looks like answer your question: https://stackoverflow.com/a/17426622/159995.
Or you can just use system('convert /home/icicle/Desktop/images_284.tif /home/icicle/Desktop/images_284.jpg')
Upvotes: 2