Icon to png bug

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
dundua

Icon to png bug

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

Re: Icon to png bug

Post 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.
dundua

Re: Icon to png bug

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

Re: Icon to png bug

Post by magick »

We can reproduce the problem you posted. We will have a patch within a day or two. Thanks.
Post Reply