I had a problem with ImageMagick not converting JPEGs on a fresh install of Mac OSX Lion. I was getting the fallowing error:
convert: unable to open module file `/Users/natewade/.magick/jpeg.la': No such file or directory @ warning/module.c/GetMagickModulePath/813.
convert: no decode delegate for this image format `test1.jpg' @ error/constitute.c/ReadImage/544.
convert: no images defined `test1.jpg' @ error/convert.c/ConvertImageCommand/3044.
However conversions with gifs and other formats worked fine. After Googling around I came across many people with the same problem online from as far back as 2006. But none of them had posted a solutions.
When you configured Image magic you may notice this:
checking for JPEG...
checking jconfig.h usability... no
checking jconfig.h presence... no
checking for jconfig.h... no
checking jerror.h usability... no
checking jerror.h presence... no
checking for jerror.h... no
checking jmorecfg.h usability... no
checking jmorecfg.h presence... no
checking for jmorecfg.h... no
checking jpeglib.h usability... no
checking jpeglib.h presence... no
checking for jpeglib.h... no
checking for jpeg_read_header in -ljpeg... no
checking for JPEG library is version 6b or later... no
checking if JPEG package is complete... no
This problem has been solved. This error was on Mac OSX 10.7.3, but after Googling the problem I have found the same problem posted by other versions of OSX as well as other operating systems (seems like CentOS the most). The same fix should apply to other Linux flavors as well.
The problem was quite simple to fix. All you need to do is install Libjpeg:
curl -O http://www.ijg.org/files/jpegsrc.v8c.tar.gz
$ tar zxvf jpegsrc.v8c.tar.gz
$ cd jpeg-8c/
$ ./configure
$ make
$ sudo make install
Reinstall ImageMagick and you should be good to go.
had to install ghostscript - so for mac
brew install ghostscript
brew link --overwrite ghostscript
brew reinstall imagemagick --build-from-source
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With