convert png with transparency to eps3 file, -compress lzw
Posted: 2015-08-10T09:43:18-07:00
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.
you will get a broken EPS file. Photoshop will produce a transparent box on the top left, ghostscript will refuse to load the file:
-> 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()
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
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 be exactly 720x359
-> RGB and alpha channel
-> there may not be any transparent pixels
I think the problem is related in LZWEncodeImage()