anyone know how I can fix this install error?

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: anyone know how I can fix this install error?

Post by fmw42 »

anthony wrote:Fred, could you have two ghostscript programs installed?
Not that I am aware. But I guess it is possible if they are not in the same directory.

freds-mac-mini:/usr/local/bin fred$ ls -al gs*
-rwxr-xr-x 1 root wheel 10408028 Feb 25 2008 gs
-rwxr-xr-x 1 root wheel 376 Feb 25 2008 gsbj
-rwxr-xr-x 1 root wheel 16096 Sep 1 2008 gsc
-rwxr-xr-x 1 root wheel 378 Feb 25 2008 gsdj
-rwxr-xr-x 1 root wheel 381 Feb 25 2008 gsdj500
-rwxr-xr-x 1 root wheel 379 Feb 25 2008 gslj
-rwxr-xr-x 1 root wheel 376 Feb 25 2008 gslp
-rwxr-xr-x 1 root wheel 303 Feb 25 2008 gsnd
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: anyone know how I can fix this install error?

Post by fmw42 »

magick wrote:No need for a restart. The problem appears to be a Ghostscript installation problem. You can test by running Ghostscript directly from the command line.
  • convert logo: logo.ps
    "gsc" -q -dQUIET -dPARANOIDSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=0 "-sDEVICE=pam" -dTextAlphaBits=4 -dGraphicsAlphaBits=4 "-r72x72" -g121x87 "-sOutputFile=logo.pam" "logo.ps"


convert logo: logo.ps

"gsc" -q -dQUIET -dPARANOIDSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=0 "-sDEVICE=pam" -dTextAlphaBits=4 -dGraphicsAlphaBits=4 "-r72x72" -g121x87 "-sOutputFile=logo.pam" "logo.ps"
Unknown device: pam
Unrecoverable error: undefined in .uninstallpagedevice
Operand stack:
defaultdevice
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: anyone know how I can fix this install error?

Post by magick »

Ok, now try the pnmraw device. It is generally available to all Ghostscript installations. It appears that your problem is with Ghostscript, not ImageMagick.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: anyone know how I can fix this install error?

Post by fmw42 »

thanks. I tend to agree that the problem is with Ghostscript. I will try your suggestion as soon as I can.

This morning I tried:

convert rose: rose.pdf
convert rose.pdf rose.png

which worked fine.

But

convert rose: rose.ps
convert rose.ps rose.png

Error: /invalidfont in /findfont
Operand stack:
Times-Roman
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 1857 1 3 %oparray_pop 1856 1 3 %oparray_pop 1840 1 3 %oparray_pop 1723 1 3 %oparray_pop --nostringval-- %errorexec_pop .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- 1815 1 3 %oparray_pop
Dictionary stack:
--dict:1144/1684(ro)(G)-- --dict:0/20(G)-- --dict:85/200(L)--
Current allocation mode is local
Last OS error: 2
Current file position is 5720
GPL Ghostscript 8.61: Unrecoverable error, exit code 1
Error: /invalidfont in /findfont
Operand stack:
Times-Roman
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 1857 1 3 %oparray_pop 1856 1 3 %oparray_pop 1840 1 3 %oparray_pop 1723 1 3 %oparray_pop --nostringval-- %errorexec_pop .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- 1815 1 3 %oparray_pop
Dictionary stack:
--dict:1144/1684(ro)(G)-- --dict:0/20(G)-- --dict:85/200(L)--
Current allocation mode is local
Last OS error: 2
Current file position is 5720
GPL Ghostscript 8.61: Unrecoverable error, exit code 1
convert: Postscript delegate failed `rose.ps': No such file or directory @ ps.c/ReadPSImage/741.
convert: missing an image filename `rose.png' @ convert.c/ConvertImageCommand/2774.

Does this tell you anything further.
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: anyone know how I can fix this install error?

Post by fmw42 »

This is very strange:

This works fine to create a ps file via a pdf file and then convert the ps to png.
convert logo: logo.pdf
convert logo.pdf logo.ps
convert logo.ps logo.png

But if I try to convert directly to ps and then convert that to png it fails. What is the significance of this?
convert logo: logo.ps
convert logo.ps logo.png

Error: /invalidfont in /findfont
Operand stack:
Times-Roman


...
as per my message above.

Also this works:

convert logo: logo.pdf
convert logo.pdf logo.ps
"gsc" -q -dQUIET -dPARANOIDSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=0 "-sDEVICE=pnmraw" -dTextAlphaBits=4 -dGraphicsAlphaBits=4 "-r72x72" -g121x87 "-sOutputFile=logo.pnm" "logo.ps"

But this fails:

convert logo: logo.ps
freds-mac-mini:~ fred$ "gsc" -q -dQUIET -dPARANOIDSAFER -dBATCH -dNOPAUSE -dNOPROMPT -dMaxBitmap=500000000 -dAlignToPixels=0 -dGridFitTT=0 "-sDEVICE=pnmraw" -dTextAlphaBits=4 -dGraphicsAlphaBits=4 "-r72x72" -g121x87 "-sOutputFile=logo.pnm" "logo.ps"
Error: /invalidfont in /findfont
Operand stack:
Times-Roman
...
etc as per my post above.


Do I need to reinstall Ghostscript? Or is this a font issue? If I need to re-install GS, what version do you recommend? What are the IM folks using currently? (Ghostscript is now up to 8.64)
Post Reply