no decode delegate for this image format (PDF to JPG)

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
nagyt234
Posts: 2
Joined: 2012-10-09T00:45:10-07:00
Authentication code: 67789

no decode delegate for this image format (PDF to JPG)

Post by nagyt234 »

I am using Centos 5. ImageMagick and Ghsotscript of this distribution is quiet old and a lot of PDF file can not be converted:

$ /usr/bin/convert -version
Version: ImageMagick 6.2.8 05/07/12 Q16 file:/usr/share/ImageMagick-6.2.8/doc/index.html
Copyright: Copyright (C) 1999-2006 ImageMagick Studio LLC
$ /usr/bin/gs -v
GPL Ghostscript 8.70 (2009-07-31)
Copyright (C) 2009 Artifex Software, Inc. All rights reserved.

Therefore I decided to install new versions from source:

$ /usr/local/bin/convert -version
Version: ImageMagick 6.7.9-9 2012-10-05 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2012 ImageMagick Studio LLC
Features: OpenMP
$ /usr/local/bin/gs -v
GPL Ghostscript 9.06 (2012-08-08)
Copyright (C) 2012 Artifex Software, Inc. All rights reserved.

Note, that /usr/local/bin is before /usr/bin in my PATH:

$ echo $PATH
/usr/local/texlive/2012/bin/i386-linux:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/home/linthal/bin

While the old versions could convert PDF files into JPG thumbnails, the new ones not:

$ /usr/bin/convert -thumbnail x500 /tmp/a.pdf -quality 50 jpg:/tmp/a.jpg
$ echo $?
0
$ ls -l /tmp/a.jpg
-rw-rw-r-- 1 linthal linthal 14613 Oct 9 10:11 /tmp/a.jpg

$ /usr/local/bin/convert -thumbnail x500 /tmp/a.pdf -quality 50 jpg:/tmp/a.jpg
convert: no decode delegate for this image format `/tmp/magick-wDO3Xgc0-00000001' @ error/constitute.c/ReadImage/550.
convert: Postscript delegate failed `/tmp/a.pdf': No such file or directory @ error/pdf.c/ReadPDFImage/679.
convert: no images defined `jpg:/tmp/a.jpg' @ error/convert.c/ConvertImageCommand/3044.

$ echo $?
1

Some information reegarding gs and ImageMacick compilation. At running confugure for ImageMagick I saw the following messages (note that I tried configure with and without "--with-gslib", the result is the same:

$ ./configure --with-gslib

-------------------------------------------------------------
checking for Ghostscript...
checking ghostscript/iapi.h usability... no
checking ghostscript/iapi.h presence... no
checking for ghostscript/iapi.h... no
checking ghostscript/ierrors.h usability... no
checking ghostscript/ierrors.h presence... no
checking for ghostscript/ierrors.h... no
checking for gsapi_new_instance in Ghostscript framework... no
checking for gsapi_new_instance in -lgs... yes
checking if Ghostscript package is complete... no -- some components failed test
-------------------------------------------------------------
...
checking for gs... /usr/local/bin/gs
...
-------------------------------------------------------------
checking for Ghostscript...
checking for Ghostscript version... 9.06
checking for gs alpha device... pngalpha
checking for gs color device... pnmraw
checking for gs CMYK device... pam
checking for gs mono device... pbmraw
checking for gs PDF writing device... pdfwrite
checking for gs PS writing device... pswrite
checking for gs EPS writing device... epswrite
-------------------------------------------------------------
nagyt234
Posts: 2
Joined: 2012-10-09T00:45:10-07:00
Authentication code: 67789

Re: no decode delegate for this image format (PDF to JPG)

Post by nagyt234 »

The problem is solved for me so far, that I downloaded the pre-compiled version of ImageMagick for CentOS and it works correctly.
Post Reply