Tuesday, September 9, 2014

Chrome favicon corrupted

One strange bug is found in Google Chrome. It corrupts favicon icon.

Here is screenshot of Chrome tabs:

At the same time Firefox and Internet Explorer shows good icon representation.

One solution is to use PNG or GIF favicon instead of ICO. But this new formats are supported only in modern browsers.

Another solution is to resave icon in an icon editor program. For me IcoFX solved the problem. Just open corrupted icon, make small changes and save it under favicon.ico.

Then check linking on html page:
<link rel="shortcut icon" href="./favicon.ico" type="image/x-icon">