I was interested in creating a favicon.ico file in Ubuntu Linux for a new website that I helped create. I recalled having used KIconEdit to do it before. I installed KIconEdit and used that to create the icon. However, KIconEdit did not have any options to save as favicon.ico. I turned to the internet for help.
Most of the information gleened by Google search said to save the file as a 16×16 pixel PNG file, and use one of the icon command line tools to convert it to the favicon.ico format. So I looked in apt-get cache to see if any icon tools were available.
$ apt-cache search favicon
icoutils - Create and extract MS Windows icons and cursors
Yeah! That looked promising. So I install icoutils using apt-get.
$ sudo apt-get install icoutils
Wow! That was easy! Now how do I use this tool? Well, man pages usually help.
$ man icoutils
No manual entry for icoutils
Bummer! Well, maybe the package will give me some clues.
$ apt-cache show icoutils
Status: install ok installed
Maintainer: Colin Watson
Depends: libc6 (>= 2.3.4-1), libpng12-0 (>= 1.2.8rel), zlib1g (>= 1:1.2.1), perl, libwww-perl
Suggests: libterm-readline-gnu-perl | libterm-readline-perl-perl
Description: Create and extract MS Windows icons and cursors
Icoutils is a set of programs that deal with MS Windows icons and cursors. Resources such as icons and cursors can be extracted from MS Windows executable and library files with "wrestool". Conversion of these files to and from PNG images is done with "icotool". "extresso" automates these tasks with the help of special resource scripts.
This package can be used to create "favicon.ico" files for web sites.
Aha! I could potentially use icotool to convert the PNG icon to a favicon. icotool had both a man page and a
--help option. I used icotool on the command line to convert my PNG file.
$ icotool -o favicon.ico -c favicon.png
I also used The GIMP image tool to convert a JPEG scan of my daughter Mary Elizabeth’s footprints to a PNG. I opened the image, scaled it to 16×16 pixels, and saved it as favicon.png. I used icotool to convert the PNG file to a favicon.ico file. I uploaded the favicon.ico file to her memorial website anencephaly.net.