Skip to content

Instantly share code, notes, and snippets.

@Fintan
Created July 25, 2020 12:21
Show Gist options
  • Save Fintan/6ff68799d269c3e377ed5f80ad11e013 to your computer and use it in GitHub Desktop.
Save Fintan/6ff68799d269c3e377ed5f80ad11e013 to your computer and use it in GitHub Desktop.
Create an icon file with Inkscape and ImageMagick
#1) Export your SVG to PNG with InkScape
#2) Resize this PNG image to the sizes you want with ImageMagick
#3) Convert the PNG images to ICO
#4) Make sure your ICO contains everything
magick convert master.png -resize 16x16 16.png
magick convert master.png -resize 32x32 32.png
magick convert master.png -resize 48x48 48.png
magick convert 16.png 32.png 48.png icon.ico
identify icon.ico
#https://graphicdesign.stackexchange.com/questions/77359/how-to-convert-a-square-svg-to-all-size-ico
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment