I\'ve had ImageMagick, RMagick, & PaperClip working properly with everything setup including the config Paperclip.options[:command_path]
in production.rb<
You can type
which convert
and which identify
to check whether imagemagick is installed properly.
In my case, which convert
returns /usr/local/bin/convert
but identify not found
.
I used brew install imagemagick
before, so I run it again and return imagemagick already installed, it's just not linked
.
Finally got the point, brew link imagemagick
(or brew link --overwrite imagemagick
)
Don't forget to add the Paperclip.options[:command_path] = "/usr/local/bin/"
to your config/environment.rb
file.
You need to change the files production.rb
and development.rb
which are in:
config/environments:
# Paperclip config:
Paperclip.options[:image_magick_path] = "/opt/ImageMagick/bin"
Paperclip.options[:command_path] = "/opt/ImageMagick/bin"
Just add those two lines just before the last line and restart the server.
In MacOSX system, if you are using another location, just put the right PATH there.