6 *ksvgtopng|*ksvgtopng4)
10 $svgtopng --width=$1 --height=$2 --output $4 $3
13 $svgtopng --without-gui --export-width=$1 --export-height=$2 --export-png=$BUILDDIR/$4 $3
16 $svgtopng $3 -resize $1x$2 $4
21 if test "$OSTYPE" != "cygwin" -a "$OSTYPE" != "msys"; then
27 if [[ "$png" = *_[1-9]*_[1-9]*.png ]];
37 if [ ! -f $svg.svg -a ! -f $svg.svgz ]
41 if [ -f $png -a ! -f $svg.svg ]; then
42 # width and height seems to be defined as part of the file name
45 # use width and hight from the svg image
50 w=$(grep 'width="[0-9pxt.]*"' $svg.svg | head -n 1 | sed -e 's/.*width="//' -e 's/[pxt]*".*//')
54 h=$(grep 'height="[0-9pxt.]*"' $svg.svg | head -n 1 | sed -e 's/.*height="//' -e 's/[pxt]*".*//')
56 svgtopng $w $h $svg.svg $png
59 gzip -dc <$svg.svgz >$svg.svg
62 w=$(grep 'width="[0-9pxt.]*"' $svg.svg | head -n 1 | sed -e 's/.*width="//' -e 's/[pxt]*".*//')
66 h=$(grep 'height="[0-9pxt.]*"' $svg.svg | head -n 1 | sed -e 's/.*height="//' -e 's/[pxt]*".*//')
68 svgtopng $w $h $svg.svg $png