Skip to content

Instantly share code, notes, and snippets.

@azam
Last active June 5, 2026 21:59
Show Gist options
  • Select an option

  • Save azam/3b6995a29b9f079282f3 to your computer and use it in GitHub Desktop.

Select an option

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
convert -density 256x256 -background transparent favicon.svg -define icon:auto-resize -colors 256 favicon.ico
@randolf

randolf commented Jun 5, 2026

Copy link
Copy Markdown

@GarfieldDeepClone it could be that your source SVG has white background

I have the same problem, and the SVG has a transparent background. (It was generated by InkScape's "Save as plain SVG" and I tested it with different backgrounds to confirm that the background is transparent.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment