41

I have an app that is using Imagemagick, but I had to rebuild my environment and now when I try and upload an avatar (which is why I am using Imagemagick), it keeps giving me the following error when I try to add an image.

Avatar Failed to manipulate with MiniMagick, maybe it is not an image? Original Error: ImageMagick/GraphicsMagick is not installed

I installed it in the folder that holds my app, but it seems as though the app is not recognizing the install. Is there a way to make the app recognize the minimagick or did I install it in the wrong place or am I completely off.

-UPDATE-

I uninstalled minimgick and reinstalled, but still get the same error, although it shows that it is installed. Here are my versions...

-imagemagick-6.9.1-6

-ruby 2.2.1p85 (2015-02-26 revision 49769) [x86_64-darwin14]

-Rails 4.0.10

-running on a mac

fmw42
  • 46,825
  • 10
  • 62
  • 80
SupremeA
  • 1,519
  • 3
  • 26
  • 43

7 Answers7

94

You need to install libmagickwand-dev in order to successfully complete the rmagick gem. Following command will do the job for you:

sudo apt-get install libmagickwand-dev

On a Mac, you would run the following command:

brew install imagemagick # it requires you to install Homebrew first.
fmw42
  • 46,825
  • 10
  • 62
  • 80
Arslan Ali
  • 17,418
  • 8
  • 58
  • 76
49

on Ubuntu:

sudo apt-get install imagemagick
Szymon Rut
  • 835
  • 1
  • 9
  • 13
22

I had the same issue and solved it with:

sudo apt-get update

sudo apt-get install imagemagick --fix-missing

Nick
  • 3,496
  • 7
  • 42
  • 96
  • i was able to convert images in console, but resque jobs would keep returning that error. after running the --fix-missing everything worked again – Cremz Feb 25 '19 at 14:48
5

sudo apt-get install graphicsmagick-imagemagick-compat

Ivan Verevkin
  • 127
  • 1
  • 7
2

Just an update on my experience. I recently had the same issue with the latest version of ImageMagick 7.0.8-7. I fixed the problem by just downgrading to 6.9.... This solved the issue for some reason.

  • I was on Windows btw. x64.
kurt
  • 23
  • 4
1

You just need to update your system libraries. try this:-

sudo apt-get -f install

and then you would be able to upload it.

Jaswinder
  • 1,455
  • 14
  • 27
1

For who's on Cloud9 encountering the error:

MiniMagick::Invalid (You must have ImageMagick or GraphicsMagick installed)

this solved for me:

sudo yum install ImageMagick
iGian
  • 11,023
  • 3
  • 21
  • 36