Page 1 of 1
Help! Cannot convert ps files: delegate failed
Posted: 2011-03-15T18:06:18-07:00
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
Re: Help! Cannot convert ps files: delegate failed
Posted: 2011-03-17T14:48:34-07:00
by wealthychef
Since lots of people have read this but none are replying, I'm moving it to the Bugs forum. Thanks
Re: Help! Cannot convert ps files: delegate failed
Posted: 2011-03-17T15:02:59-07:00
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.
Re: Help! Cannot convert ps files: delegate failed
Posted: 2011-03-17T15:50:22-07:00
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
Re: Help! Cannot convert ps files: delegate failed
Posted: 2011-03-17T15:54:45-07:00
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.
Re: Help! Cannot convert ps files: delegate failed
Posted: 2011-03-17T16:00:00-07:00
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!