Icon with transparency is not imported correctly

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
fsmirne

Icon with transparency is not imported correctly

Post 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.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Icon with transparency is not imported correctly

Post by magick »

Fixed in ImageMagick 6.3.7-0 Beta. Thanks for the problem report.
fsmirne

Re: Icon with transparency is not imported correctly

Post by fsmirne »

Thanks for fixing it so fast!

FS
fsmirne

Re: Icon with transparency is not imported correctly

Post 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
Post Reply