|
Post by TechSalt on Nov 19, 2022 5:38:52 GMT -8
Here is a script I made that converts Linux icon packs from png to ico files. Requires ImageMagick! It may also need to slightly be modified depending on the icon pack. (usually the paths)
@echo off ::Keep in mind that the batch file HAS to be in the root of the icon pack! (like iconpack\icoconvert.cmd, not iconpack\16x16\icoconvert.cmd). This also requires ImageMagick. :reset1 ::Icon type (status, apps, etc.) set IcoType=status :reset2 ::Size to grab all icon names from. It's not recommended to change this, since it changes itself automatically. set IconSize=16x16 mkdir .\ico\Automation mkdir .\ico\Automation\%IcoType% :conversionprocess ::Go to directory with the icons. cd %IconSize%\%IcoType% ::Convert the icons into ICO files. This first checks if the files already exist in the conversion folder, and if they don't, it will convert. FOR %%1 IN (*.PNG) DO IF NOT EXIST ..\..\ICO\Automation\%IcoType%\%%1.ico magick convert ..\..\16x16\%IcoType%\%%1 ^ ..\..\22x22\%IcoType%\%%1 ^ ..\..\32x32\%IcoType%\%%1 ^ ..\..\48x48\%IcoType%\%%1 ^ ..\..\ICO\Automation\%IcoType%\%%1.ico if %IconSize%==16x16 set IconSize=22x22&&goto conversionprocess if %IconSize%==22x22 set IconSize=32x32&&goto conversionprocess if %IconSize%==32x32 set IconSize=48x48&&goto conversionprocess cd ..\.. exit /b Example outputs: Nuvola icon pack
|
|
|
Post by TechSalt on Nov 19, 2022 7:24:43 GMT -8
Converted SE98 to ICO files.
I slightly modified the script for SE98: @echo off ::Keep in mind that the batch file HAS to be in the root of the icon pack! (like iconpack\icoconvert.cmd, not iconpack\16x16\icoconvert.cmd). This also requires ImageMagick. :reset1 ::Icon type (status, apps, etc.) set IcoType=actions :reset2 ::Size to grab all icon names from. It's not recommended to change this, since it changes itself automatically. set IconSize=16 mkdir .\ico\Automation mkdir .\ico\Automation\%IcoType% :conversionprocess ::Go to directory with the icons. cd %IcoType%\%IconSize% ::Convert the icons into ICO files. This first checks if the files already exist in the conversion folder, and if they don't, it will convert. FOR %%1 IN (*.PNG) DO IF NOT EXIST ..\..\ICO\Automation\%IcoType%\%%1.ico magick convert ..\..\%IcoType%\16\%%1 ^ ..\..\%IcoType%\24\%%1 ^ ..\..\%IcoType%\32\%%1 ^ ..\..\%IcoType%\48\%%1 ^ ..\..\%IcoType%\64\%%1 ^ ..\..\%IcoType%\256\%%1 ^ ..\..\ICO\Automation\%IcoType%\%%1.ico if %IconSize%==16 set IconSize=22&&goto conversionprocess if %IconSize%==22 set IconSize=32&&goto conversionprocess if %IconSize%==32 set IconSize=48&&goto conversionprocess if %IconSize%==48 set IconSize=64&&goto conversionprocess if %IconSize%==64 set IconSize=256&&goto conversionprocess cd ..\.. exit /b Download (tar.gz)
|
|