Did you ever wonder how to create the small images seen next to URLs in a browser’s address window or next to bookmarks of Favorites saved in a browser? These images are called Favicons.
Favicons are easy to create and work in current versions of Internet Explorer, Netscape and FireFox. Although we have not yet verified it, Favicons are reported to work in the newest version of Opera, as well.
The small image shown above is a Favicon. Favicons are the tiny images displayed next to a bookmarked Favorite in Microsoft’s Internet Explorer and FireFox. Once a site location has been saved in the Favorites, the Favicon icon displays in a browser’s address window whenever you revisit the page as a reminder that the page is bookmarked. Favicons add a professional touch to a Web site, especially when the Favicon image represents a company logo or other distinctive mark.
Creating a Favicon is simple. To get it one to work is even simpler. To get it to work, all you have to do is place the Favicon image file in the root directory of a Web site. There is one catch. A Favicon is an icon file, which is a specific format that most image editors cannot produce, so the file must be saved with programs designed to create files in the special .ico icon format.
Creating a Favicon Image
A Favicon icon is a 16 pixel by 16 pixel image. That does not give you much to work with, so a Favicon must be fairly simple. You are also limited to working with only 16 colors (4-bit). There are two ways to create a Favicon image.
Method 1: the hard way
- Create a 16 pixel by 16 pixel blank image with your favorite image editor.
- Enlarge the blank image until you reach a size where you can select individual pixels.
- Set the color pallet in your editor to 4-bit color (16 colors)
- Select the colors you wish to use with the image editor’s color pallet.
- Paint the image by coloring each pixel individually.
- Save the image as favicon.gif in a GIF file format.
Method 2: the easy way
- Start with a logo or image you wish to turn into a favicon.
- Crop a square portion of the image (exact same height and width dimensions).
- Set the color pallet in your image editor to 4-bit color (16 colors)
- Using your image editor, reduce the image down to 16 pixels by 16 pixels.
- Temporarily save your file in a GIF format as favicon.gif.
Converting and Saving a Favicon Image
If you have an image editor that will convert images to a Windows Icon (.ico) format, great! All you need to do is save the GIF image in a Windows Icon format. You must name the file favicon.ico. If your editor does not work with this format, there are several freeware images
converters that are popular. One simple editor/converter that works well is Irfanview.
Another nice freebie icon editor/converter is IconEdit 32. Simply load the favicon.gif file into the image converter and save it as favicon.ico. Note that both of these image converters are also editors, so you can
create your images from scratch in the editors, or you can use the editor to make any final adjustments to the images before conversion.
Installing the favicon.ico Image
As mentioned earlier, all you need to do to install the Favicon is to place it in root directory of a Web site.
If you wish to save a favicon under a name other than favicon.ico or you want to store it in another place on your server, a browser can find the favicon file if you point to it with the following link code placed in the head section of a Web document. You would, of course, have to modify the URL and file name to fit your situation.
Have fun creating your own Favicon.