aboutsummaryrefslogtreecommitdiffstats
path: root/image/make-icons
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2006-11-13 01:15:56 +0000
committerGerald Combs <gerald@wireshark.org>2006-11-13 01:15:56 +0000
commit300053d80070e2c88e5acf84bfc2bd4356855fd5 (patch)
treef7bb0cbf3c2166817e3d8b457627ea0bd517e92a /image/make-icons
parenta54a816f92eaf283dc48a22abc6b4788e7ad0ae6 (diff)
Set a transparency threshold for the XPM icons. Have the make-icons script
constify the XPMs. svn path=/trunk/; revision=19883
Diffstat (limited to 'image/make-icons')
-rwxr-xr-ximage/make-icons9
1 files changed, 7 insertions, 2 deletions
diff --git a/image/make-icons b/image/make-icons
index 866ef4ba17..e7e6018094 100755
--- a/image/make-icons
+++ b/image/make-icons
@@ -3,14 +3,19 @@
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} wsicon256.png wsicon${RES}.xpm
+ $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} wsiconcap256.png wsiconcap${RES}.xpm
+ $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