Page 1 of 1

Icon to png bug

Posted: 2009-09-12T20:19:56-07:00
by dundua
I have found a bug where when you convert an icon file that has multiple icons inside, some of the images will be converted incorrectly. I am using ImageMagick 6.5.5.9 on Windows XP Pro SP3.

Some sample images are available to download below.
http://www.mediafire.com/file/yuzoz3t0i ... images.zip

Preview of files:
http://www.mediafire.com/?sharekey=6954 ... 8045d6ed82

Re: Icon to png bug

Posted: 2009-09-13T08:00:52-07:00
by magick
We require that bug reports are atomic. Post a URL to one icon image and the correct rendering of the image. Also post exactly how ImageMagick is incorrectly rendering the image. We will verify that a problem exists and fix it. Its possible that with the bug fix all your other icon images will then render correctly. If not we will move onto the next bug.

Re: Icon to png bug

Posted: 2009-09-13T10:54:59-07:00
by dundua
Original Icon File:
http://answers.yahoo.com/favicon.ico

Correct Image (1st icon in the ico file):
testicon-0.png
Image

Incorrect Images (2nd to 4th icons in the ico file):
testicon-1.png
Image
testicon-2.png
Image
testicon-3.png
Image

I am just using the following command.

Code: Select all

convert.exe C:\favicon.ico C:\testicon.png
Also, the incorrect images will open partially correct in Windows Paint and Internet Explorer 8. The problem is that the transparent parts of the image are black.
The images will look messed up in applications like Windows Picture and Fax Viewer, Paint.Net, and Firefox 3.5.

Re: Icon to png bug

Posted: 2009-09-13T13:14:51-07:00
by magick
We can reproduce the problem you posted. We will have a patch within a day or two. Thanks.