png2ico is a program that converts PNG files to Windows icon resource files. If you're looking for a program to create a favicon.ico for your website, look no further. If you need instructions or don't even know what a favicon is, check out my short tutorial on how to create and install a favicon.ico.
The program is extremely simple to use. To create a favicon.ico that contains a logo in the resolutions 16x16 and 32x32 (an icon can contain multiple images of different sizes, but a single 16x16 image is enough for a favicon), you would use a command like the following:
png2ico favicon.ico logo16x16.png logo32x32.png
To compile png2ico on a Unix-like platform simply issue the command:
You need to have libpng installed. Furthermore, the Makefile uses the GNU C++ compiler g++ by default. If you don't have g++, change the Makefile to use your compiler instead.
There should be no problems building the program on a GNU/Linux system. If you can provide information about building on other platforms, let me know.
The Makefile does not have an install target. To install the program, just copy the binary png2ico to wherever you want it (e.g. /usr/local/bin/) and the manpage doc/png2ico.1 to an appropriate directory (e.g. /usr/local/man/man1/).