SVG to multisize icon - Krzysiu/krzysiu-gimp-plugin-pack GitHub Wiki

This plugin imports SVG file and creates new image with multiple layers - each one with different size. Such image can be exported to .ico file making it a real, multisized icon for use as e.g. responsible folder or application icon. Such files are natively supported by Windows and most, if not all, Linux windows managers.

This plugin differs from other "create icon" plugins:

  • it utilizes vector graphics by multiple imports of the same file, i.e. vector image is rendered multiple times, not just resized. It affects the quality of the image, especially anti-aliasing and other issues caused by resizing.
  • created file is ready to export - no further processing is needed
  • except the set of standard sizes, you can use any custom set of sizes

Note: if you want to create multisized file, use File>Export as... and choose Microsoft Windows Icon (.ico) format. Using external export plugins or most other formats may cause that e.g. only one layer will be exported (RIOT plugin) or image will be flattened (Save for web plugin). You can recognize that everything went fine by dialog (see Result section) which appears after export.

Result

SVG image imported by SVG to multisize icon plugin, using 32x32, 64x64 and 256x256 sizes
Example

Gimp export dialog for the file above
Example

Notes on input file

  • The input file has to be an SVG file. You can create such file using open source vector graphics editor - Inkscape.
  • The proportions of the SVG canvas (viewbox) should be 1:1 (same width and height). In other cases the rendering process won't fail, but it might give unexpected results, like rendering paths which are outside SVG canvas.

This plugin supports transparency, so if the background of the imported file is opaque, you have to fix it in SVG file editor. In Inkscape you can check it by File>Document properties->Background->☑ Checkerboard background.

It's very unlikely that plugin won't read input file. If it does, it means something wrong is with your SVG file. Consider converting all objects (including text) to paths or save file as plain SVG, then try to open the file directly in Gimp by using File>Open dialog. If Gimp won't import image, the plugin won't import it neither.

Options

  • Watermark file - path to SVG file
  • Include [16, 32, 48, 64, 256]x[16, 32, 48, 64, 256] - on/off switches for most popular icon sizes. For standard Windows icon set, use 16, 32, 48 and 256. Please note that contrary to popular opinion, Windows doesn't utilize 64x64 icons.
  • Custom sizes - the list of custom sizes separated by comma. Order doesn't matter. Spaces are allowed. Example: 128,12,100 or 50, 100, 200.
⚠️ **GitHub.com Fallback** ⚠️