Last active
September 23, 2025 17:33
-
-
Save azam/3b6995a29b9f079282f3 to your computer and use it in GitHub Desktop.
Convert SVG to ICO using ImageMagick, with transparent background and multi-size icons
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| convert -density 256x256 -background transparent favicon.svg -define icon:auto-resize -colors 256 favicon.ico |
@GarfieldDeepClone it could be that your source SVG has white background
is anyone else noticing that the icon size is always ~300kb when using imagemagick? This seems a bit excessive.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
My .ico also has white background when using this command:
magick favicon.svg -density 256x256 -background transparent -colors 256 -define icon:auto-resize="128,64,48,32,16" favicon.icoWhat I'm doing wrong?