Mod_rails and Paperclip :: NotIdentifiedByImageMagickError Paperclip Problem

I have no need to deploy my application on a server running ubuntu using mod_rails. Running webrick on the server seems fine, and I can save the files, no problem. But when I start the application through nginx, I get this error when I try to save the file.

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

+6
ruby-on-rails nginx paperclip mod-rails
source share
3 answers
Paperclip.options[:image_magick_path] 

It is obsolete, apparently. Try:

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

Who worked for me. If necessary, adjust the path to ImageMagick.

+4
source share

The path to ImageMagick is lost, try adding

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

into your configuration.

0
source share

If add

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

does not work, try installing ImageMagick with shared 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 

The part makes the difference

 ./configure --disable-static --with-modules --without-perl --without-magick-plus-plus --with-quantum-depth=8 make sudo make install 
0
source share

All Articles