Linux one liner: Convert scalable vector graphics (SVG) to PNG with gstreamer

I don't need to say more then the title, right? You can do this with convert from the ImageMagick package, but doing it with gstreamer was news to me. Here is the code to svg2png with gstreamer:

gst-launch filesrc location=intput.svg ! gdkpixbufdec ! pngenc ! filesink location=output.png

I used this in a Makefile rule:
%.png: %.svg
gst-launch filesrc location=$< ! gdkpixbufdec ! pngenc ! filesink location=$@  2>&1

The above code will load the SVG, decode it with gdkpixbugdec and then encode it into the png format for the filesink to store. This works, but it does not account for any scaling, which means your png output size will be set by the SVG file.

I've tried to get the elements to scale, for example using:

%.png: %.svg
gst-launch filesrc location=$< ! image/svg,width=320,height=240 ! gdkpixbufdec ! pngenc ! filesink location=$@  2>&1

But that does not work. Scaling after the gdkpixbufdec element with videoscale will work, but you will lose all the quality (and basically the whole point of having an SVG source). There are two solutions to this problem: wait for the newest gst-plugins-bad hits the archives (it should contain the rsvg plugin which should solve this problem, see version 0.10.17) or use rsvg.
sudo aptitude install librsvg2-bin
rsvg --x-zoom 10 --y-zoom 10 input.svg output.png

This will create a PNG which is 10 times as big, in both directions, as the SVG says it originally is meant to be. The make rule is now:
%.png: %.svg
rsvg --x-zoom 10 --y-zoom 10 "$<" "$@"

all: myimage.png