![]() ![]() Set imageMagick="C:\SOFTWARE\DEVELOPER\IMAGEMAGICK\magick.exe" Set inkScape="C:\SOFTWARE\GRAPHIC\INKSCAPE\inkscape.exe" Windows batch file, which creates multiple sized. ![]() (equivalent to the one presented in user400747’s answer)Īctually scaled bitmap image (lost quality) I’ve noticed that the command: convert logo.svg -define icon:auto-resize=16,48,256 -compress zip favicon.ico In his answer here to build an array of filenames.Īnd finally we unlink (remove) the PNG files created in line 4, You can change the list of sizes in line 3,Īnd the convert command will automatically adapt accordingly,īecause this script uses the technique described by G-Man Which we then combine into the output (result) icon file, favicon.ico. Unlink logo.svg represents the input (source) image,įrom which we create smaller files of the desired sizes Inkscape -z -e "$size.png" -w "$size" -h "$size" logo.svg > /dev/null 2> /dev/null To avoid having to type the sizes (16, 32, etc.) more than once: #!/bin/bash Here’s the accepted answer by Rob W, with a trivial adaptation ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |