Rails 4, ImageMagick and PaperClip

When I want to upload an image, I get this error:

1 error prohibited this movie from being saved:
Image Could not run the `identify` command. Please install ImageMagick.

I have this in the gemgile:

gem 'imagemagick-identify', '~> 0.0.1'
 gem 'paperclip', '~> 4.2.1'

I ran $ gem install imagemagick-ident

+4
source share
2 answers

imagemagick-identifyis just a wrapper for imagemagick identify. You will need to install imagemagick separately from the gem.

If you are using debian / ubuntu you can do sudo apt-get install imagemagick.

If you are on a Mac, you may find this helpful.

If you are on Windows, you can find the executables to install here .

It looks like there are binaries for other platforms available on the last link.

imagemagick , , PATH.

+7

9...

sudo apt-get install imagemagick --fix-missing

. ,

sudo apt-get

imagemagick

+3

Source: https://habr.com/ru/post/1570526/


All Articles