Neha
Neha

Reputation: 305

Use convert method of imagemagick in ruby on rails application

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 methodconvert' for #:`

How can I use the convert method in my ruby on rails application?

Upvotes: 0

Views: 1430

Answers (1)

Werner Echezuria
Werner Echezuria

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

Related Questions