offending PostScript output

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
coulon

offending PostScript output

Post by coulon »

I downloaded this image: http://www.lib.unc.edu/music/eam/viewer ... s=ns1_14p2 and said:
convert -threshold 50% mytest.jpg mytest.ps.

Then when I try to view the ps file with GhostView I obtain this message:
Unrecoverable error: syntaxerror in %ztokenexec_continue
Operand stack:
--nostringval--

--- Begin offending input ---

--- End offending input ---
file offset = 16572
gsdll_execute_cont returns -18

With ps2pf I obtain:
Error: /syntaxerror in --%ztokenexec_continue--
Operand stack:
--nostringval--

Is the source image the culprit, or Imagemagick? I have version:
6.5.4-1 2009-06-26 Q8.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: offending PostScript output

Post by magick »

Looks like a bug. We will have a patch within a day or two. Thanks.
coulon

Re: offending PostScript output

Post by coulon »

magick wrote:Looks like a bug. We will have a patch within a day or two. Thanks.
I tried the 16-bit version on a Linux machine, and it works fine. Hope this helps.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: offending PostScript output

Post by magick »

It appears your image has an XMP profile that Ghostscript does not like. Try this command:
  • convert -density 72 mytest.jpg -threshold 50% +profile xmp mytest.ps
coulon

Re: offending PostScript output

Post by coulon »

magick wrote:It appears your image has an XMP profile that Ghostscript does not like. Try this command:
  • convert -density 72 mytest.jpg -threshold 50% +profile xmp mytest.ps
Works fine. Thanks.
Post Reply