ICO favicons are very well supported and offer a bonus feature: multiple resolution in a single file. This way, the browser decides which resolution he prefers. This is notably useful in the era of iPads and Macbooks with high resolutions (Retina).
Here is a simple script to resize an image multiple times and combines them using ImageMagick. Should work with all supported formats of ImageMagick