Help! Cannot convert ps files: delegate failed

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
wealthychef
Posts: 19
Joined: 2006-02-16T18:06:32-07:00
Location: Livermore

Help! Cannot convert ps files: delegate failed

Post by wealthychef »

I just installed version 6.6.8-4 on our linux (RHEL 5) compute nodes. It seemed to work fine, and all 48 tests passed when I ran "make check." However, while convert will convert from gif to ps, it will not convert the other way:

rcook@edge83 (dataAndImages): convert paper.ps paper.gif
CRIT: rangecheck in .setuserparams
Operand stack:
--nostringval-- --nostringval-- --nostringval--
CRIT: rangecheck in .setuserparams
Operand stack:
--nostringval-- --nostringval-- --nostringval--
convert: Postscript delegate failed `paper.ps': @ error/ps.c/ReadPSImage/806.
convert: missing an image filename `paper.gif' @ error/convert.c/ConvertImageCommand/2974.

Can someone help me troubleshoot this? Thanks! I'm clueless about the intricacies of ImageMagick configuration. The previous version "just worked." I use an install script and did the same install as before. It seems like a bug in 6.6.8 perhaps. Version 6.5.7, compiled identically, works correctly. 6.6.7 also does not work.
Help!
-- Rich
wealthychef
Posts: 19
Joined: 2006-02-16T18:06:32-07:00
Location: Livermore

Re: Help! Cannot convert ps files: delegate failed

Post by wealthychef »

Since lots of people have read this but none are replying, I'm moving it to the Bugs forum. Thanks
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Help! Cannot convert ps files: delegate failed

Post by fmw42 »

If you installed from source, then you probably need to install Ghostscript and then re-install IM

type the following

convert -list configure

look at the line starting with DELEGATES. See if it includes gs.
wealthychef
Posts: 19
Joined: 2006-02-16T18:06:32-07:00
Location: Livermore

Re: Help! Cannot convert ps files: delegate failed

Post by wealthychef »

fmw42 wrote:If you installed from source, then you probably need to install Ghostscript and then re-install IM

type the following

convert -list configure

look at the line starting with DELEGATES. See if it includes gs.
Interesting, so gs is not in delegates for 6.6.8, but is for 6.4.9. I'm compiling with the same flags on the same machine. I cannot see what is different, other than the configure script for 6.6.8 sets --with-gslib=no, but for 6.4.9 it sets --with-gslib=yes. Ghostscript is definitely installed; it's the same machine in both cases. If I manually set --with-gslib=yes on the configure line for 6.6.8, it fails in make check.

So the question is: why does 6.4.9 on the same machine act differently that 6.6.8? Why does 6.4.9 see our ghostscript and 6.6.8 does not?
Here is part of the output for the 6.6.8 configure script:

-------------------------------------------------------------
checking for Ghostscript...
checking for Ghostscript version... 8.15.2
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
wealthychef
Posts: 19
Joined: 2006-02-16T18:06:32-07:00
Location: Livermore

Re: Help! Cannot convert ps files: delegate failed

Post by wealthychef »

Forgot one detail. So after configuring version 6.6.8 with --with-gslib=yes, and installing even though "make check" fails, I now see this:


rcook@edge84 (ImageMagick-6.6.8-4): convert -list configure | grep DELEG
DELEGATES bzlib fftw fontconfig freetype gs gvc jpeg jng jp2 lcms mpeg png rsvg tiff x11 xml wmf zlib
rcook@edge84 (ImageMagick-6.6.8-4): convert ~/dataAndImages/paper.ps paper.pdf
CRIT: rangecheck in .setuserparams
Operand stack:
--nostringval-- --nostringval-- --nostringval--
CRIT: rangecheck in .setuserparams
Operand stack:
--nostringval-- --nostringval-- --nostringval--
convert: Postscript delegate failed `/g/g0/rcook/dataAndImages/paper.ps': @ error/ps.c/ReadPSImage/806.
convert: missing an image filename `paper.pdf' @ error/convert.c/ConvertImageCommand/2974.
wealthychef
Posts: 19
Joined: 2006-02-16T18:06:32-07:00
Location: Livermore

Re: Help! Cannot convert ps files: delegate failed

Post by wealthychef »

I see the problem. It looks like version 6.6.8 wants a newer version of ghostscript, and fails with the old version. Version 6.4.9 seems ok with the older ghostcript. Mystery solved.
Thanks!
Post Reply