Dark mode switch icon Light mode switch icon

Favicon Generation with ImageMagick

1 min read

Common Image Manipulation Tricks

Below are some quick tricks that can be used to manipulate images using ImageMagick.

If you’re looking to replace white areas with a translation:

convert ./incognitum_3.jpeg -fuzz 5% -transparent white incognitum_icon.png

To create a scaled down version of any image:

convert favicon-256.png -resize 128x128 favicon-128.png

To create a favicon.ico from multiple source images:

convert favicon-16.png favicon-32.png favicon-64.png favicon-128.png favicon-256.png -colors 256 favicon.ico

Originally published on by Austin Webre