How to make a Favicon for your website using Debian Linux.

tlyons

To make a favicon (that icon that appears before http:// in the address bar of your browser).

(1.) Install xpm2wico (xpm to Windows ico converter) using APT.
(2.) Capture and shrink or create/edit a 16x16 graphic in GIMP, KIconEdit, etc.
(3.) Save your image in X PixMap Image (xpm) format.
(4.) Open a console to the directory with your file and type: "xpm2wico favicon.xpm favicon.ico".
(5.) Upload your new .ico file to your website's main directory, and add this bit of code to the webpage's HTML (edit the icon name as appropriate):

<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />

- T.

--

.:. Reg'd Linux User #75719 .:.



schultmc
schultmc's picture
Re: How to make a Favicon for your website using Debian Linu

You can also use convert (from Imagemagick):

convert file.jpg file.ico

The initial file (file.jpg) can be anything ImageMagick supports (almost every image type) as long as it's the correct size (16x16).



tlyons
tlyons's picture
Re: How to make a Favicon for your website using Debian Linu

I didn't know convert supported .ico, but that's even better, seeing as convert is already installed by default. :)

- T.

--

.:. Reg'd Linux User #75719 .:.