Convert fails with fill patterns

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
lagaffe

Convert fails with fill patterns

Post by lagaffe »

Hi,

Actually the bug seems to be with Ghostscript part. I will post it anyway since I'm sure someone here can help me with it.
ImageMagick 6.3.3
Ghostscript 8.57
Mac OS X 10.4.10

- I first create a rectangle under PowerPoint, and fill it with a pattern (such as diagonal strokes)
- I print the file as a postscript file (thanks to Mac OS "Save PDF as Postscript" feature in the Print dialog)
- The file looks ok in any program
- I use convert test.ps test.jpg, and get:

GPL Ghostscript 8.57: Unrecoverable error, exit code 255
GPL Ghostscript 8.57: Unrecoverable error, exit code 255
convert: Postscript delegate failed `test.ps'.
convert: missing an image filename `test.jpg'.

This bug ONLY occurs with fill patterns. I cna find workarounds but I was wondering if someone could reproduce the bug. I'd upload the .ps file if I could.

Thanks.

P.S :

Here what the verbose mode says :

"gs" -q -dBATCH -dSAFER -dMaxBitmap=500000000 -dNOPAUSE -dAlignToPixels=0 -dEPSCrop "-sDEVICE=pnmraw" -dTextAlphaBits=4 -dGraphicsAlphaBits=4 "-g612x792" "-r72x72" "-sOutputFile=/var/tmp/magick-wkGc2zTn" "-f/var/tmp/magick-Zd235k0d" "-f/var/tmp/magick-dClbxFWY"
GPL Ghostscript 8.57: Unrecoverable error, exit code 255
Start of Image
Define Huffman Table 0x00
0 1 5 1 1 1 1 1
1 0 0 0 0 0 0 0
Define Huffman Table 0x01
0 3 1 1 1 1 1 1
1 1 1 0 0 0 0 0
Define Huffman Table 0x10
0 2 1 3 3 2 4 3
5 5 4 4 0 0 1 125
Define Huffman Table 0x11
0 2 1 2 4 4 3 4
7 5 4 4 0 1 2 119
End Of Image
"gs" -q -dBATCH -dSAFER -dMaxBitmap=500000000 -dNOPAUSE -dAlignToPixels=0 -dEPSCrop "-sDEVICE=pnmraw" -dTextAlphaBits=4 -dGraphicsAlphaBits=4 "-g612x792" "-r72x72" "-sOutputFile=/var/tmp/magick-wkGc2zTn" "-f/var/tmp/magick-Zd235k0d" "-f/var/tmp/magick-dClbxFWY" -c showpage
GPL Ghostscript 8.57: Unrecoverable error, exit code 255
Start of Image
Define Huffman Table 0x00
0 1 5 1 1 1 1 1
1 0 0 0 0 0 0 0
Define Huffman Table 0x01
0 3 1 1 1 1 1 1
1 1 1 0 0 0 0 0
Define Huffman Table 0x10
0 2 1 3 3 2 4 3
5 5 4 4 0 0 1 125
Define Huffman Table 0x11
0 2 1 2 4 4 3 4
7 5 4 4 0 1 2 119
End Of Image
convert: Postscript delegate failed `test.ps'.
convert: missing an image filename `test.jpg'.
lagaffe

Re: Convert fails with fill patterns

Post by lagaffe »

Ok, this problem no longer occurs with Ghostscript 8.60 and ImageMagick 6.3.5.
Post Reply