ImageMagick does not convert JPEG files

I'm having a problem with ImageMagick not converting JPEG files into a new Mac OSX Lion installation. I got an 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 gif and other formats worked fine. After googling around, I met many people with the same problem online back in 2006. But not one of them published a decision.

When setting up image magic, you may notice the following:

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
+5
source share
3 answers

This issue has been resolved. This error was on Mac OSX 10.7.3, but after fixing the problem on Google, I found the same problem as other versions of OSX, as well as other operating systems (it seems CentOS is the most). The same fix should apply to other versions of Linux.

. , , 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

ImageMagick, .

+6

ghostscript - mac

brew install ghostscript

brew link --overwrite ghostscript

brew reinstall imagemagick --build-from-source
+5

You need to have certain JPEG library header files, in other words, install several * -devel packages, such as libjpeg-turbo-devel, openjpeg-devel. The same goes for other image formats such as PNG, TIFF, WMF, etc. (Libpng-devel, libtiff-devel, libwmf-devel, ghostscript-devel, etc.).

0
source

All Articles