Export svg code to .svg file then upload local?

452 Views Asked by At

My code:

var files = jQuery('#cargatulogo')[0].files;
Potrace.loadImageFromFile(files[0]);
Potrace.process(function () {
    svg = Potrace.getSVG(0.8);
    console.log(svg);
});

result console.log(svg):

enter image description here

I want to save it and upload it local.

Thanks.

0

There are 0 best solutions below