-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Created a high resolution version of the legacy icon.
- Loading branch information
1 parent
92925a7
commit bd042c7
Showing
3 changed files
with
261 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
@echo off | ||
|
||
:: Assume that ImageMagick already installed by installation script. | ||
set PATH=%TEMP%\imagemagick;%PATH% | ||
|
||
echo Searching for imagemagik executables in PATH... | ||
where magick.exe | ||
if errorlevel 1 ( | ||
echo File 'magick.exe' not found. Please install imagemagik on system and add the directory to PATH. | ||
exit /B %errorlevel% | ||
) | ||
echo Found imagemagik directory. | ||
echo. | ||
|
||
call :process_file "0.2.0.svg" | ||
pause | ||
goto :eof | ||
|
||
|
||
:process_file | ||
echo Generate pngs... | ||
magick -background none -size 16x16 "%~1" "%~dpn1-16.png" | ||
magick -background none -size 32x32 "%~1" "%~dpn1-32.png" | ||
magick -background none -size 48x48 "%~1" "%~dpn1-48.png" | ||
magick -background none -size 64x64 "%~1" "%~dpn1-64.png" | ||
|
||
echo Override generated 16x16 icon with the legacy 16x16 icon. | ||
magick -background none "0.2.0-16x16-legacy.ico" "%~dpn1-16.png" | ||
|
||
echo Generate ico... | ||
set png_files= | ||
set png_files=%png_files% "%~dpn1-16.png" | ||
set png_files=%png_files% "%~dpn1-32.png" | ||
set png_files=%png_files% "%~dpn1-48.png" | ||
set png_files=%png_files% "%~dpn1-64.png" | ||
magick %png_files% "%~dpn1.ico" | ||
|
||
echo Generated "%~dpn1.ico". | ||
echo. | ||
|
||
echo Deleting png (intermediate files). | ||
del %png_files% | ||
|
||
goto :eof | ||
|
||
:eof |
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.