diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-02-24 02:13:59 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-02-24 02:13:59 +0000 |
commit | a6d58bb6052ac8cb01805a48c4ad2f129126116f (patch) | |
tree | dd867a099fcbb263a8009a9fb22695b87855dad6 /data/icons/scalable/createpng.sh | |
download | kvirc-a6d58bb6052ac8cb01805a48c4ad2f129126116f.tar.gz kvirc-a6d58bb6052ac8cb01805a48c4ad2f129126116f.zip |
Added KDE3 version of kvirc
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kvirc@1095341 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'data/icons/scalable/createpng.sh')
-rw-r--r-- | data/icons/scalable/createpng.sh | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/data/icons/scalable/createpng.sh b/data/icons/scalable/createpng.sh new file mode 100644 index 00000000..74fec260 --- /dev/null +++ b/data/icons/scalable/createpng.sh @@ -0,0 +1,24 @@ +#!/bin/bash + +HERE=$(pwd) + +for size in 16 32 48 64 128; do + echo "Creating icons with size" $size "x" $size + for file in *.svgz; do + PNGFNAME=$(echo $file | sed -e 's/svgz/png/g') + echo "Creating icon" $PNGFNAME + set -x + # Ksvgtopng exports broken pngs.. + #ksvgtopng $size $size $HERE/$file $HERE/../$size"x"$size/$PNGFNAME + inkscape \ + -z \ + --export-png=$HERE/../$size"x"$size/$PNGFNAME \ + --export-area-drawing \ + --export-width=$size \ + --export-height=$size \ + $HERE/$file + set +x + done +done + +echo "Done :)" |