Page 2 of 2
Re: how do I make a multi resolution .ico file?
Posted: 2016-05-10T00:13:25-07:00
by agent.coulson
thanks, now with this command
Code: Select all
magick "%~1" -resize 256x256 -gravity center -extent 256x256 -define icon:auto-resize="256,128,96,64,48,32,16" "%~n1.ico"
i get this
http://uptobox.com/0x6umc2kj8wd
how to make the white color to tranparent?
Re: how do I make a multi resolution .ico file?
Posted: 2016-05-10T00:19:16-07:00
by fmw42
Code: Select all
magick "%~1" -resize 256x256 -gravity center -background none -extent 256x256 -define icon:auto-resize="256,128,96,64,48,32,16" "%~n1.ico"
Re: how do I make a multi resolution .ico file?
Posted: 2016-05-11T17:04:26-07:00
by agent.coulson
thanks..
Re: how do I make a multi resolution .ico file?
Posted: 2019-06-06T20:21:34-07:00
by Froschkoenig84
Windows batch file, which creates multiple sized .PNGs and merge them to one .ICO file:
Code: Select all
@echo off
set inkScape="C:\SOFTWARE\GRAPHIC\INKSCAPE\inkscape.exe"
set imageMagick="C:\SOFTWARE\DEVELOPER\IMAGEMAGICK\magick.exe"
set fileName=favicon
set importType=svg
set exportType=png
set exportDpi=300
set imageSizes=(16 24 32 48 57 60 64 70 72 76 96 114 120 128 144 150 152 180 192 196 256 300 320 400 450 460 480 512 600)
for %%s in %imageSizes% do (
%inkScape% -z -f %~dp0%fileName%.%importType% -w %%s -h %%s -e %~dp0%fileName%-%%sx%%s.%exportType% -d %exportDpi%
echo CREATED: %fileName%-%%sx%%s.%exportType%
set e=%fileName%-%%sx%%s.%exportType%
call :concat (e)
)
%imageMagick% %exportFileNames%"%~dp0%fileName%.ico"
echo MERGED IN: %fileName%.ico
pause goto :eof
:concat (e) (
set exportFileNames=%exportFileNames%"%~dp0%e%"
)
If you don't need the .PNG files, you can delete (or remove) them by...
...or you save all PNGs inside a directory you can remove after...
Code: Select all
%imageMagick% %exportFileNames%"%~dp0%fileName%.ico"
Hope it helps somebody.