ginebra/chrome/bedrockchrome/toolbar2.snippet/icons/svg_toolbar_convert.sh
changeset 0 1450b09d0cfd
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ginebra/chrome/bedrockchrome/toolbar2.snippet/icons/svg_toolbar_convert.sh	Tue May 04 12:39:35 2010 +0300
@@ -0,0 +1,25 @@
+#!/bin/sh
+
+
+# toolbar icons
+ICON_WIDTH=40
+ICON_HEIGHT=40
+
+# toolbar icon borders
+#ICON_WIDTH=1
+#ICON_HEIGHT=30
+
+echo
+echo "Usage: $0 <list of svg files to convert>"
+echo "This script converts svg icons into png icons with w=$ICON_WIDTH h=$ICON_HEIGHT"
+echo "DPI is default, 90dpi"
+echo "Edit the script to change the size\n"
+echo "... Requires librsvg2-bin package from ubuntu\n"
+
+echo "CONVERTING the files listed below:"
+
+for i in $*; do
+    rsvg-convert -w $ICON_WIDTH -h $ICON_HEIGHT $i -o `echo $i | sed -e s/svg$/png/`
+    echo $i;
+done
+