wireshark/image/make-icons
Gerald Combs 300053d800 Set a transparency threshold for the XPM icons. Have the make-icons script
constify the XPMs.

svn path=/trunk/; revision=19883
2006-11-13 01:15:56 +00:00

22 lines
575 B
Bash
Executable file

#!/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