You are Here: FAQ ->Website Building->Article #4


How to Create a "Favicon.ico" File


Some browsers try to get a the standard favicon file favicon.ico by default, even if you have not given any icon to your pages. This is why you may find "GET /favicon.ico HTTP/1.1" 404 entries in your web server logs.

How to create favicon icon images



* Create a 16x16 image using Gimp or some image editor.
* Save your icon file in the PNM format. Most image tools support this format. Save your file as .jpg or .png if .pnm is unavailable.
* Make sure you have netpbm installed. (Gentoo: emerge netpbm)
* Convert your pnm image to a favicon
* ppmtowinicon -output favicon.ico yourdrawing.pnm if your image is .pnm
* jpegtopnm yourfile.jpg | ppmtowinicon -output favicon.ico if your image is .jpg
* pngtopnm yourfile.png | ppmtowinicon -output favicon.ico if your image is .png
* Place the image in the / root of your web server





Print Article
How useful was this article?
(From 5 = Very Useful to 1 = Not Very Useful at all):
1 2 3 4 5