convert png with transparency to eps3 file, -compress lzw

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
chrisF
Posts: 3
Joined: 2014-07-25T00:39:51-07:00
Authentication code: 6789

convert png with transparency to eps3 file, -compress lzw

Post by chrisF »

Hello,

this is the second bug:

start gimp, create a new image with 720x359 with alpha channel, fill the image with anything, check that there are no transparent pixels any more. Save the image as png file with transparency.

Code: Select all

convert 720x359-alpha.png -compress lzw eps3:/tmp/broken.eps
you will get a broken EPS file. Photoshop will produce a transparent box on the top left, ghostscript will refuse to load the file:

Code: Select all

Error: /ioerror in --.reusablestreamdecode--
Operand stack:
   --nostringval--   --dict:0/0(L)--   --nostringval--   --nostringval--   false   false   false   --nostringval--   --nostringval--   --nostringval--   (\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000...)
Execution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   --nostringval--   --nostringval--   false   1   %stopped_push   1951   1   3   %oparray_pop   1950   1   3   %oparray_pop   1934   1   3   %oparray_pop   1820   1   3   %oparray_pop   --nostringval--   %errorexec_pop   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   1814   2   4   %oparray_pop   1925   1   4   %oparray_pop   --nostringval--   --nostringval--   --nostringval--   %loop_continue   --nostringval--
Dictionary stack:
   --dict:1181/1684(ro)(G)--   --dict:0/20(G)--   --dict:87/200(L)--   --dict:87/200(L)--
Current allocation mode is global
Last OS error: No such file or directory
GPL Ghostscript 9.15: Unrecoverable error, exit code 1
-> the image must have an alpha channel
-> the image must be exactly 720x359
-> RGB and alpha channel
-> there may not be any transparent pixels

I think the problem is related in LZWEncodeImage()
Post Reply