blob: e7e6018094221442576e573a8023043e809f8a95 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#!/bin/sh
RESOLUTIONS="64 48 32 16"
CONVERT=convert
XPM_OPTS="-channel A -threshold 50%"
for RES in 64 48 32 16 ; do
$CONVERT -resize ${RES}x${RES} wsicon256.png wsicon${RES}.png
$CONVERT -resize ${RES}x${RES} $XPM_OPTS wsicon256.png xpm:- | \
sed -e "s/^static char \*-/static const char *wsicon${RES}_xpm/" > \
wsicon${RES}.xpm
done
for RES in 48 32 16 ; do
$CONVERT -resize ${RES}x${RES} $XPM_OPTS wsiconcap256.png xpm:- | \
sed -e "s/^static char \*-/static const char *wsiconcap${RES}_xpm/" > \
wsiconcap${RES}.xpm
done
|