Add a convenience routine to convert pixbuf data generated by
[obnox/wireshark/wip.git] / image / make-icons
1 #!/bin/sh
2
3 RESOLUTIONS="64 48 32 16"
4
5 CONVERT=convert
6 XPM_OPTS="-channel A -threshold 50%"
7
8 for RES in 64 48 32 16 ; do
9     $CONVERT -resize ${RES}x${RES} wsicon256.png wsicon${RES}.png
10     $CONVERT -resize ${RES}x${RES} $XPM_OPTS wsicon256.png xpm:- | \
11         sed -e "s/^static char \*-/static const char *wsicon${RES}_xpm/" > \
12         wsicon${RES}.xpm
13 done
14
15 for RES in 48 32 16 ; do
16     $CONVERT -resize ${RES}x${RES} $XPM_OPTS wsiconcap256.png xpm:- | \
17         sed -e "s/^static char \*-/static const char *wsiconcap${RES}_xpm/" > \
18         wsiconcap${RES}.xpm
19 done
20
21