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 |
|