-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathmakeappicons.sh
executable file
·31 lines (23 loc) · 1 KB
/
makeappicons.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#!/bin/sh
# give help if no arguments
if [ $# -ne 2 ]; then
echo "syntax: $0 imagefile outputdir"
exit 1
fi
INPUT_IMAGE="$1"
FOLDER=$2
mkdir -p ${FOLDER}
sips -z 20 20 "$INPUT_IMAGE" --out "${FOLDER}/Icon-20.png"
sips -z 40 40 "$INPUT_IMAGE" --out "${FOLDER}/[email protected]"
sips -z 60 60 "$INPUT_IMAGE" --out "${FOLDER}/[email protected]"
sips -z 29 29 "$INPUT_IMAGE" --out "${FOLDER}/Icon-29.png"
sips -z 58 58 "$INPUT_IMAGE" --out "${FOLDER}/[email protected]"
sips -z 87 87 "$INPUT_IMAGE" --out "${FOLDER}/[email protected]"
sips -z 40 40 "$INPUT_IMAGE" --out "${FOLDER}/Icon-40.png"
sips -z 80 80 "$INPUT_IMAGE" --out "${FOLDER}/[email protected]"
sips -z 120 120 "$INPUT_IMAGE" --out "${FOLDER}/[email protected]"
sips -z 60 60 "$INPUT_IMAGE" --out "${FOLDER}/Icon-60.png"
sips -z 120 120 "$INPUT_IMAGE" --out "${FOLDER}/[email protected]"
sips -z 180 180 "$INPUT_IMAGE" --out "${FOLDER}/[email protected]"
sips -z 76 76 "$INPUT_IMAGE" --out "${FOLDER}/Icon-76.png"
sips -z 152 152 "$INPUT_IMAGE" --out "${FOLDER}/[email protected]"