Converting some icons creates black stripes on transparency

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
Jacket
Posts: 2
Joined: 2013-05-24T06:21:21-07:00
Authentication code: 6789

Converting some icons creates black stripes on transparency

Post by Jacket »

For a project of mine I'm fetching websites favicons and storing them to be displayed in a website. Sounds pretty trivial, but I have one strange issue. Almost all icons come in a .ico format, which is not very web friendly. Some icons also have different sizes in them. I'm using Imagemagick to convert them to PNG and extract only the 16x16 icon.

I'm using the following command line for this:

Code: Select all

convert source.ico -geometry 16x16 -alpha on -background none -flatten out.png
Unfortunately on some icons this creates some nasty horizontal black stripes in the transparent areas. Here is an example:

This is the original icon:

http://g.etfv.co/http://www.mysqlperformanceblog.com/

This is the result:

Image

Here it is again embedded here:

Image

What could be wrong here? My ImageMagick is version 6.5.4-7
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Converting some icons creates black stripes on transpare

Post by snibgo »

You are using an ancient version of ImageMagic. With v6.8.5, your command gives me no black lines.
snibgo's IM pages: im.snibgo.com
Jacket
Posts: 2
Joined: 2013-05-24T06:21:21-07:00
Authentication code: 6789

Re: Converting some icons creates black stripes on transpare

Post by Jacket »

Thanks I will update. This is the version that comes with CentOS 6.4.
Post Reply