Nemus
Nemus

Reputation: 3993

Rails 4 , ImageMagick and PaperClip

When i want to upload 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 Gemfile:

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

I ran from my console: gem install imagemagick-identify

Upvotes: 5

Views: 14171

Answers (2)

ihaztehcodez
ihaztehcodez

Reputation: 2133

imagemagick-identify is just a wrapper for imagemagick's identify program. 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 binaries to install here.

Looks like there are binaries for other platforms available at the last link as well.

If you have installed imagemagick and still get that error, make sure it is in your PATH.

Upvotes: 11

Sawo Cliff
Sawo Cliff

Reputation: 3038

if you are using cloud 9 ... there may be times just running

sudo apt-get install imagemagick --fix-missing

wont work. If that is your case, do

sudo apt-get update

first then install imagemagick after that

Upvotes: 5

Related Questions