-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4c60687
commit 8a3525b
Showing
14 changed files
with
24 additions
and
5 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 |
---|---|---|
@@ -1,20 +1,38 @@ | ||
#!/bin/bash | ||
rm images/*.png | ||
cd svg | ||
for file in $(ls *.svg); do | ||
for file in $(cd svg && ls *.svg); do | ||
filename=${file%%.svg} | ||
echo "Rasterizing $filename..." | ||
|
||
convert \ | ||
-density 1200 \ | ||
-resize 18x18 \ | ||
-background none \ | ||
$file ../images/$filename.png | ||
svg/$file images/$filename.png | ||
|
||
convert \ | ||
-density 1200 \ | ||
-resize 36x36 \ | ||
-background none \ | ||
$file ../images/$filename@2x.png | ||
|
||
svg/$file images/$filename@2x.png | ||
done | ||
|
||
echo 'Creating ICNS...' | ||
convert \ | ||
-density 1200 \ | ||
-resize 1024x1024 \ | ||
-background none \ | ||
svg/menuActive.svg images/DockerMenu.png | ||
mkdir images/DockerMenu.iconset | ||
sips -z 16 16 images/DockerMenu.png --out images/DockerMenu.iconset/icon_16x16.png | ||
sips -z 32 32 images/DockerMenu.png --out images/DockerMenu.iconset/[email protected] | ||
sips -z 32 32 images/DockerMenu.png --out images/DockerMenu.iconset/icon_32x32.png | ||
sips -z 64 64 images/DockerMenu.png --out images/DockerMenu.iconset/[email protected] | ||
sips -z 128 128 images/DockerMenu.png --out images/DockerMenu.iconset/icon_128x128.png | ||
sips -z 256 256 images/DockerMenu.png --out images/DockerMenu.iconset/[email protected] | ||
sips -z 256 256 images/DockerMenu.png --out images/DockerMenu.iconset/icon_256x256.png | ||
sips -z 512 512 images/DockerMenu.png --out images/DockerMenu.iconset/[email protected] | ||
sips -z 512 512 images/DockerMenu.png --out images/DockerMenu.iconset/icon_512x512.png | ||
cp images/DockerMenu.png images/DockerMenu.iconset/[email protected] | ||
iconutil -c icns images/DockerMenu.iconset | ||
rm -R images/DockerMenu.iconset |
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
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.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.