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 [ "$OSTYPE" != "cygwin" -a "$OSTYPE" != "msys" ]; then
39 if [ ! -f $svg.svg -a ! -f $svg.svgz ]
43 if [ -f $png -a ! -f $svg.svg ]; then
44 # width and height seems to be defined as part of the file name
47 # use width and height from the svg image
52 w=$(grep 'width="[0-9pxt.]*"' $svg.svg | head -n 1 | sed -e 's/.*width="//' -e 's/[pxt]*".*//')
56 h=$(grep 'height="[0-9pxt.]*"' $svg.svg | head -n 1 | sed -e 's/.*height="//' -e 's/[pxt]*".*//')
58 svgtopng $w $h $svg.svg $png
61 gzip -dc <$svg.svgz >$svg.svg
64 w=$(grep 'width="[0-9pxt.]*"' $svg.svg | head -n 1 | sed -e 's/.*width="//' -e 's/[pxt]*".*//')
68 h=$(grep 'height="[0-9pxt.]*"' $svg.svg | head -n 1 | sed -e 's/.*height="//' -e 's/[pxt]*".*//')
70 svgtopng $w $h $svg.svg $png