Cezar Halmagean
Cezar Halmagean

Reputation: 902

mod_rails and Paperclip problem Paperclip::NotIdentifiedByImageMagickError

I am havingn troble deploying my app to a server runing ubuntu with mod_rails. Runing webrick on the server seems fine and I can save files, no problem. But runing the app thru nginx, I get this error when I try to save a file.

[paperclip] An error was received while processing: # [paperclip] An error was received while processing: # R

Upvotes: 6

Views: 4900

Answers (3)

Cihan Ozcelik
Cihan Ozcelik

Reputation: 9

If adding

Paperclip.options[:command_path] = "/usr/local/bin/"

doesn't work try installing ImageMagick with common delegates:

mkdir /sources cd /sources

wget
ftp://ftp.imagemagick.org/pub/ImageMagick/ImageMagick.tar.gz

tar xvfz ImageMagick.tar.gz

cd ImageMagick-6.6.7-8

Here comes the part makes the difference

./configure --disable-static
--with-modules --without-perl --without-magick-plus-plus --with-quantum-depth=8

make

sudo make install

Upvotes: 0

Tony
Tony

Reputation: 87

Paperclip.options[:image_magick_path]

Is deprecated, apparently. Try:

Paperclip.options[:command_path] = "/usr/local/bin"

Which worked for me. Adjust path to ImageMagick as needed.

Upvotes: 4

Mike Buckbee
Mike Buckbee

Reputation: 6993

The path to ImageMagick is getting lost, try adding

Paperclip.options[:image_magick_path] = '/opt/local/bin'

to your config.

Upvotes: 0

Related Questions