Save Image as SVG


I would like to save the canvas as SVG.
I found this:
But it does not work for Canvas content created as Image f.e.
Is this right? So I would have to create these Pixelstructures directly to the canvas? Without creating an image (which is usefull for scaling etc.)

Best regards,