HOWTO Create a favicon.ico in Linux

From LinuxNewbie

Ever bookmarked a cool site and it had a graphic beside the text? How about the tabs on Mozilla or Firefox? Those are favicon.ico and you can make one for your website.

I am going to use [www.gimp.org gimp] and ppmtowinicon from the netpbm package.

  • Start with a picture.
  • It must be square, so change the canvas size.
  • Reduce the picture size to 16x16. (scale the image)
  • Choose File, save as.. and save as favicon.pnm with raw encoding.
  • Close GIMP
  • Convert favicon.pnm using the command line utility ppmtowinicon:
ppmtowinicon -output favicon.ico favicon.pnm

Place favicon.ico in the / directory of your web share.

Default Web Content Directory
Instructions found at http://linuxproblem.org/art_19.html