Page 1 of 1

convert png with transparency to eps3 file, -compress zip

Posted: 2015-08-10T09:26:01-07:00
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

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

Posted: 2015-08-10T09:57:05-07:00
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.