Introduction
While preparing the OpenGraph and FavIcon images for this, your trusted blog, I needed to convert a PNG to ICO. On Linux it is very easy to do with ImageMagick.
Steps
Install ImageMagick:
sudo apt install imagemagickConvert the PNG or JPEG (256x256px) to ICO:
convert input.png -define icon:auto-resize=256,64,48,32,16 favicon.icoWhere:
-define icon:auto-resize=256,64,48,32,16saves multiple icons of those sizes in the.icofile.
And that’s it.
