2006-11-03 06:30:52 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
RESOLUTIONS="64 48 32 16"
|
|
|
|
|
|
|
|
CONVERT=convert
|
2006-11-13 01:15:56 +00:00
|
|
|
XPM_OPTS="-channel A -threshold 50%"
|
2006-11-03 06:30:52 +00:00
|
|
|
|
|
|
|
for RES in 64 48 32 16 ; do
|
|
|
|
$CONVERT -resize ${RES}x${RES} wsicon256.png wsicon${RES}.png
|
2006-11-13 01:15:56 +00:00
|
|
|
$CONVERT -resize ${RES}x${RES} $XPM_OPTS wsicon256.png xpm:- | \
|
|
|
|
sed -e "s/^static char \*-/static const char *wsicon${RES}_xpm/" > \
|
|
|
|
wsicon${RES}.xpm
|
2006-11-03 06:30:52 +00:00
|
|
|
done
|
|
|
|
|
|
|
|
for RES in 48 32 16 ; do
|
2006-11-13 01:15:56 +00:00
|
|
|
$CONVERT -resize ${RES}x${RES} $XPM_OPTS wsiconcap256.png xpm:- | \
|
|
|
|
sed -e "s/^static char \*-/static const char *wsiconcap${RES}_xpm/" > \
|
|
|
|
wsiconcap${RES}.xpm
|
2006-11-03 06:30:52 +00:00
|
|
|
done
|
|
|
|
|
|
|
|
|