convert png with transparency to eps3 file, -compress zip

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 zip

Post by chrisF »

hi,

I've encountered two bugs in convert, version 6.8.9-10, the first one is converting a png with an alpha channel to an eps file:

Code: Select all

utilities/convert 200x200-alpha.png eps3:200x200-alpha.eps 
convert: unable to zip-compress image `200x200-alpha.eps' @ error/compress.c/ZLIBEncodeImage/1295.

it uses -compression zip for default. In coders/ps3.c around line 587 there is one line missing:

Code: Select all

    case ZipCompression:
    {
      status=SerializeImageChannel(image_info,mask_image,&pixel_info,&length);
      if (status == MagickFalse)
        break;
      pixels=(unsigned char *) GetVirtualMemoryBlob(pixel_info);
      ^^^^^^^^^^^^^^^^
      status=ZLIBEncodeImage(image,length,pixels);
      pixel_info=RelinquishVirtualMemory(pixel_info);
      break;
    }
Greetings,
Chris
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: convert png with transparency to eps3 file, -compress zip

Post by magick »

We can reproduce the problem you posted and have a patch in ImageMagick 6.9.2-0 Beta, available by sometime tomorrow. Thanks.
Post Reply