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.


Table of contents

Table of contents

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.


Read the License for the original content

Non-original content is included or referenced under fair use.


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

License for original content: CC BY-NC-ND 4.0

Non-original content is included or referenced under fair use.

Loading license…