aboutsummaryrefslogtreecommitdiffstats
path: root/trunk/data/icons/generate-png.sh
diff options
context:
space:
mode:
Diffstat (limited to 'trunk/data/icons/generate-png.sh')
-rwxr-xr-xtrunk/data/icons/generate-png.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/trunk/data/icons/generate-png.sh b/trunk/data/icons/generate-png.sh
new file mode 100755
index 000000000..ce6d585c5
--- /dev/null
+++ b/trunk/data/icons/generate-png.sh
@@ -0,0 +1,15 @@
+#! /bin/sh
+
+for F in *.svg
+do
+ for S in "16" "22" "24" "32" "48"
+ do
+ SIZE="$S"x"$S"
+ D=$(echo $F | sed -e "s/scalable/$SIZE/g" | sed -e "s/.svg/.png/")
+ if [ ! -e $D ]
+ then
+ inkscape --export-png=$D -w $S -h $S $F
+ fi
+ done
+
+done