Page 1 of 1

offending PostScript output

Posted: 2009-09-22T02:48:47-07:00
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.

Re: offending PostScript output

Posted: 2009-09-22T05:59:14-07:00
by magick
Looks like a bug. We will have a patch within a day or two. Thanks.

Re: offending PostScript output

Posted: 2009-09-22T06:33:19-07:00
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.

Re: offending PostScript output

Posted: 2009-09-22T06:55:26-07:00
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

Re: offending PostScript output

Posted: 2009-09-22T07:37:31-07:00
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.