Page 1 of 1

Icon with transparency is not imported correctly

Posted: 2007-11-07T15:50:45-07:00
by fsmirne
When converting the following icon to PNG, the last 3 frames are incorrectly converted.
The transparency channel does not import correctly and they come out as black.

This works in version 6.2.4 I have installed in my Ubuntu machine, but doesn't work in version 6.3.6.

Here's the URL to an icon that fails to convert:
http://members.wolfram.com/flavios/magi ... studio.ico

Here's the command I'm using:
convert visualstudio.ico test.png.

Look at test-6.png to see the problem.


Thanks.

Re: Icon with transparency is not imported correctly

Posted: 2007-11-07T18:18:18-07:00
by magick
Fixed in ImageMagick 6.3.7-0 Beta. Thanks for the problem report.

Re: Icon with transparency is not imported correctly

Posted: 2007-11-08T10:13:28-07:00
by fsmirne
Thanks for fixing it so fast!

FS

Re: Icon with transparency is not imported correctly

Posted: 2008-01-03T16:35:15-07:00
by fsmirne
Hi,

Sorry to be posting about this again.
The bug wasn't completly fixed.

Here's a screenshot of the new behavior (top) and old behavior (bottom).

Image

It seems that now, it ignores the transparent bit which says whether a pixel should be transparent or not.
It does however import the frames with alpha channel correctly.

I believe the correct way to import this file is to have the first 6 frames like the bottom row and the last 3 frames like the top row.

Thanks again for looking into this.


FS