ImageMagick error

Dominic Mercier picture Dominic Mercier · Mar 28, 2014 · Viewed 18.3k times · Source

When trying to run ImageMagick via node-imagemagick on my Grunt task, i get this error from ImageMagick:

Warning: Command failed: identify: unable to load module /usr/local/Cellar/imagemagick/6.8.8-9/lib/ImageMagick//modules-Q16/coders/jpeg.la': file not found @ error/module.c/OpenModule/1275. identify: no decode delegate for this image formatinventaire/videos/OFF_Arrestation joueur_14_petit.jpg' @ error/constitute.c/ReadImage/501. Use --force to continue.

Why is ImageMagick trying to load JPG coder at /usr/local/Cellar/imagemagick/6.8.8-9/lib/ImageMagick//modules-Q16/coders/jpeg.la? Why the double slash after ImageMagick// ?

This grunt script run perfectly on OSX 10.8 and now fail on 10.9.2. Anyone know a way to fix it?

Answer

9monkeys picture 9monkeys · Apr 15, 2014

I came across this issue too when upgrading from Mt.Lion to Mavericks. I found an issue in homebrew's github repo. The fix that worked for me was:

$ brew uninstall imagemagick
$ brew install imagemagick --build-from-source