Reputation: 1621
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
Upvotes: 50
Views: 47120
Reputation: 11193
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
Upvotes: 1
Reputation: 17812
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.
Upvotes: 100
Reputation: 23
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.
Upvotes: 2
Reputation: 3160
I had the same issue and solved it with:
sudo apt-get update
sudo apt-get install imagemagick --fix-missing
Upvotes: 23
Reputation: 1545
You just need to update your system libraries. try this:-
sudo apt-get -f install
and then you would be able to upload it.
Upvotes: 1