Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ImageMagick error

Tags:

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?

like image 703
Dominic Mercier Avatar asked Mar 28 '14 14:03

Dominic Mercier


People also ask

Is ImageMagick still maintained?

The authoritative ImageMagick web site is https://imagemagick.org. The authoritative source code repository is https://github.com/ImageMagick/ImageMagick. We continue to maintain the legacy release of ImageMagick, version 6, at https://legacy.imagemagick.org.

What is ImageMagick used for?

ImageMagick is open-source software that is used to create and edit images. It is used to edit bitmap images of 200 formats. It's available for free software that can be used as source code with a ready-run binary distribution feature.

What is ImageMagick in Linux?

ImageMagick is a free and open source, feature-rich, text-based, and cross-platform image manipulation tool used to create, edit, compose or convert bitmap images. It runs on Linux, Windows, Mac Os X, iOS, Android OS, and many other operating systems.

What is ImageMagick in Python?

PythonMagick is the Python binding of the ImageMagick library. ImageMagick® is a free software suite to create, edit, and compose bitmap images. It can read, convert and write images in a large variety of formats.


2 Answers

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 
like image 129
9monkeys Avatar answered Sep 21 '22 01:09

9monkeys


OSX Mavericks seems break the link of jpeg lib. All you need to do is relink the jpeg, then reinstall imagemagick.

brew unlink jpeg brew link jpeg 

Then reinstall imagemagick from source

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

Now you can check if jpeg is in the delegate

identify -list configure | grep DELEGATES 

It should have jpeg now

DELEGATES bzlib mpeg freetype jng jpeg lcms lzma png tiff xml zlib

like image 43
sbs Avatar answered Sep 21 '22 01:09

sbs