EPS2 output only 1/3 of image when using LZW or rle compress
Posted: 2008-06-08T14:12:12-07:00
I tried posting this on the magick-bugs mailing list, but it was bounced since it apparently considers all mail from gmail as spam:
Using ImageMagick 6.3.7 02/19/08 Q16 which comes with Ubuntu Hardy to
convert an image to EPS level 2 with LZW or RLE compression causes
only the upper 1/3 of the image data to be written to the EPS-file.
The ratio 1/3 is exact, rounded down if the number of lines in the
image is not divisible by 3. Using JPEG compression works fine. LZW
and RLE compression also works fine with EPS level 3.
The bug has also been confirmed on ImageMagick Studio
(http://net11.imagemagick.org/MagickStud ... Studio.cgi)
which I assume runs 6.4.1.
It works without problems in 6.2.4 10/02/07 on Ubuntu Gutsy.
Commands that fail:
convert -compress LZW file.png eps2:file-LZW.eps
convert -compress rle file.png eps2:file-rle.eps
convert -compress LZW file.jpg eps2:file-LZW.eps
convert -compress rle file.jpg eps2:file-rle.eps
Commands that work:
convert -compress LZW file.png eps3:file-LZW.eps
convert -compress rle file.png eps3:file-rle.eps
convert -compress JPEG file.png eps2:file-JPEG.eps
Using ImageMagick 6.3.7 02/19/08 Q16 which comes with Ubuntu Hardy to
convert an image to EPS level 2 with LZW or RLE compression causes
only the upper 1/3 of the image data to be written to the EPS-file.
The ratio 1/3 is exact, rounded down if the number of lines in the
image is not divisible by 3. Using JPEG compression works fine. LZW
and RLE compression also works fine with EPS level 3.
The bug has also been confirmed on ImageMagick Studio
(http://net11.imagemagick.org/MagickStud ... Studio.cgi)
which I assume runs 6.4.1.
It works without problems in 6.2.4 10/02/07 on Ubuntu Gutsy.
Commands that fail:
convert -compress LZW file.png eps2:file-LZW.eps
convert -compress rle file.png eps2:file-rle.eps
convert -compress LZW file.jpg eps2:file-LZW.eps
convert -compress rle file.jpg eps2:file-rle.eps
Commands that work:
convert -compress LZW file.png eps3:file-LZW.eps
convert -compress rle file.png eps3:file-rle.eps
convert -compress JPEG file.png eps2:file-JPEG.eps