HOWTO Add favicon to your web site
To add a favicon to your site or blog do the following (tried on Linux):
- Create an image in GIMP 16×16 or 32×32 in size, number of colors – below 16
- Save it as favicon.ppm
- Convert it to ico using this command:
- If previos step doesn’t work – install netpbm and netpbm-tools packages:
- Copy favicon.ico to your website document root directory
- Add the following lines to your index.html or header file:
1 | ppmtowinicon -output favicon.ico favicon.ppm |
1 | $ sudo yum install netpbm netpbm-tools |
1 2 | <link href=’http://www.URL.com/favicon.ico’ rel=’shortcut icon’/> <link href=’http://www.URL.com/favicon.ico’ rel=’icon’/> |