Skip to page content or skip to Accesskey List.
Search evolt.org
evolt.org login: or register

Work

Main Page Content

An easy addition for any site: favicon.ico

Rated 3.96 (Ratings: 9) (Add your rating)

Log in to add a comment
(7 comments so far)

Want more?

 
Picture of isaac

Isaac

Member info | Full bio

User since: December 13, 1998

Last login: October 27, 2007

Articles written: 67

One of the comparatively recent additions to well-known Internet-related file names (alongside index.html, robots.txt, default.asp, etc) is the infamous favicon.ico. Many web developers will remember the day that strange favicon.ico 404�s started appearing in their logs.

Creating a favicon.ico for your site will eliminate that particular 404 from your logs, and add a simple (but often effective) touch. There�s not too much information to provide on this topic; it really is a simple process. Read on to learn more.

What is it?

Favicon.ico is the default icon file for which Microsoft�s Internet Explorer 5 will search when anyone bookmarks (IE-speak: add a �Favorite�) or creates a shortcut to your web site. The icon will appear on your desktop (if you drag the shortcut there), or next to the URL in the location bar of the browser.

Why should I implement it?

Internet Explorer 5 is by a vast margin the Web�s most popular browser. Including a favicon.ico for your sites is a far from difficult process that allows you to add something extra that your competitors may not have bothered with. Think of it as the slightest of advantages � adding to your corporate branding (business cards, letterheads, uniforms, etc).

How do I create the icon?

Most icons, including the favicon.ico, are square. This one comes in two sizes � 16 by 16 pixels to be placed in a detail/list view, or beside your URL, and 32 by 32 pixels to be used as a desktop icon. Your multiple image icon can also include versions for 16 and 256 colour depths. If you have the time, go for the four image icon � two sizes, and two colour depths.

You have also got two primary options when it comes to favicon.ico creation: create it from scratch in a Java-based icon editor like that used by www.favicon.com, or design one in your preferred pixel-pushing application, upload, and have it imported by either the icon editor mentioned above, or another icon building application. You can investigate the first option yourself, while I discuss the second.

You will need to start with a square image, or crop a rectangular one. Decide what you would like your icon to depict (often a logo) and resize or crop your image. Keep in mind that the resulting icon is going to be quite small, so you may need to simplify your image so that it is recognisable at smaller sizes. Bold, contrasting colours will also help here. I suggest that you aim towards finishing with a 32 by 32 pixel icon using 256 colours.

When you�ve finished, save the file as a standard image format. Go with GIF. Upload your image somewhere (temporarily), and open it using the www.favicon.com Icon Editor. Make any touch-ups (especially to the 16 colour versions), and then select Save/Download from the File menu. You�ll be asked to quickly create an account with the providers of this service. Do that, and be sure to use a valid email account, otherwise you will never receive your icon.

Where do I put the file?

Now that you have your icon, place it into the root of the directory you expect people to bookmark, or use a link tag. The link tag is very straightforward, and allows you to store your icon in another directory (you might want to put it in an images directory):

<LINK rel="shortcut icon" href="http://evolt.org/evolt/favicon.ico">

Show me an example

Bookmark the evolt.org site in Internet Explorer 5 and you�ll notice our icon appear next to the URL, and in your Favorites list. If you drag the icon or page icon in the location bar to your desktop, you�ll notice the 32 by 32 pixel version too (it might take a couple of seconds to grab it though). Nice effect, and as you�ve seen, very easy to implement.

Related links:

Microsoft's How to Create a Shortcut Icon to a Web page
Favicon.com

If you have any other useful resources for favicon.ico creators, add a comment below.

isaac
www.triplezero.com.au

Isaac is a designer from Adelaide, South Australia, where he has run Triplezero for almost a decade.

He was a member and administrator of evolt.org since its founding in 1998, designed the current site, and was a regular contributor on evolt.org's direction-setting discussion list, theforum.

On the side, he runs Opinion, Hoops SA, Confessions, Daily Male, and Comments, as well as maintaining a travel gallery at Bigtrip.org.

Caveat

Submitted by bobince on July 24, 2001 - 03:31.

The big problem with shortcut icons (apart from having to use a .ICO) is that they are not re-fetched when they are expired from cache. A while after bookmarking a site (or straight away if one clears the cache), the .ICO file falls out of the disk cache, and all bookmarks using it receive an ugly "unknown Windows file" icon. I've used shortcut icons before, but with this annoying behaviour I would bother doing them any more, to be honest.

login or register to post comments

Hmmz

Submitted by DaRaptoR on August 16, 2001 - 13:34.

I tried it for my site but it didn't work for me... maybe I did something wrong anyways the idea is nice

login or register to post comments

Bah

Submitted by drphil on August 30, 2001 - 03:20.

You basically "have to" add it if your user base is largly IE based (or even KDE Browser on *nix), otherwise your serverlogs get trashed full of 404 errors for favicon.ico, which is untidy ;). After a bit of hassle i manged to find a program that did PNG -> ICO, which i used, for a site i'm developing, highwaycode.com. Natch. Really from my point of view they are just a pain in the arse, but a nice touch if you can be bothered.

login or register to post comments

support base growing...

Submitted by caffiend on October 8, 2001 - 12:28.

Galeon also supports favicon.ico, I've been having to go into the bookmark manager and tell it to get the ico which is a pain but it's early for them still.

I used ImageMagic to convert a bmp to ico using the convert command,

convert my_ico.bmp ico:favicon.ico

I'm having problems with ie using it, but not with Galeon. ie will either display a broken image or a 1x1 pixel, however if I right click and say 'show picture' it comes up, those wacky microsoft nuts...

login or register to post comments

all you need is this:

Submitted by Basmati on October 11, 2002 - 06:35.

make a gif 16 x 16 giftopnm | ppmtowinicon -output favicon.ico for example: giftopnm my_gif.gif | ppmtowinicon -output favicon.ico for more, see http://www.mavetju.org/unix/favicon.php

login or register to post comments

oops, I guess "done" ain't the same as "edit"

Submitted by Basmati on October 11, 2002 - 06:42.

make a gif 16 x 16 
giftopnm < inputfile.gif> | ppmtowinicon -output favicon.ico 
for example: 
giftopnm my_gif.gif | ppmtowinicon -output favicon.ico 
for more see
http://www.mavetju.org/unix/favicon.php 

login or register to post comments

The Mozilla Way

Submitted by teradome on December 4, 2002 - 13:21.

Mozilla introduced a cross-platform method for favicons: <link rel="icon" href="icon.gif" type="image/gif" /> You can use GIFs, JPGs and PNGs as icons in this manner. IE does not yet support this syntax, so you'll still need to provide an .ico file for now.

login or register to post comments

The access keys for this page are: ALT (Control on a Mac) plus:

evolt.orgEvolt.org is an all-volunteer resource for web developers made up of a discussion list, a browser archive, and member-submitted articles. This article is the property of its author, please do not redistribute or use elsewhere without checking with the author.