6 *ksvgtopng|*ksvgtopng4)
10 $svgtopng --width=$1 --height=$2 --output $4 $3
13 $svgtopng --without-gui --export-width=$1 --export-height=$2 --export-png=$4 $3
16 $svgtopng $3 -resize $1x$2 $4
24 if [[ "$png" = *_[1-9]*_[1-9]*.png ]];
34 if [ ! -f $svg.svg -a ! -f $svg.svgz ]
38 if [ -f $png -a ! -f $svg.svg ]
46 w=$(grep 'width="[0-9pxt.]*"' $svg.svg | head -n 1 | sed -e 's/.*width="//' -e 's/[pxt]*".*//')
50 h=$(grep 'height="[0-9pxt.]*"' $svg.svg | head -n 1 | sed -e 's/.*height="//' -e 's/[pxt]*".*//')
52 svgtopng $w $h $svg.svg $png
55 gzip -dc <$svg.svgz >$svg.svg
58 w=$(grep 'width="[0-9pxt.]*"' $svg.svg | head -n 1 | sed -e 's/.*width="//' -e 's/[pxt]*".*//')
62 h=$(grep 'height="[0-9pxt.]*"' $svg.svg | head -n 1 | sed -e 's/.*height="//' -e 's/[pxt]*".*//')
64 svgtopng $w $h $svg.svg $png