blob: 74fec260ae09aa42649073498faed6e3ff97a730 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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 :)"
|