Skip to content
rodolfo.gg
Go back

How to convert a JPEG or PNG to ICO on the Linux CLI

CC BY-NC-ND 4.0
Rodolfo González González

How to convert a JPEG or PNG to ICO on the Linux CLI

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:

Terminal window
sudo apt install imagemagick

Convert the PNG or JPEG (256x256px) to ICO:

Terminal window
convert input.png -define icon:auto-resize=256,64,48,32,16 favicon.ico

Where:

And that’s it.


Share this post on:

Previous Post
How to install SWI-Prolog on Debian 13 Trixie without dying trying.
Next Post
Guide for service administration with systemd.