Convert SVG Into Data URI

svg-datauri

Playground available @ Plunker.
Resource: canvg, HTMLCanvasElement

Note: If your browser does not able to launch the Plunker sample, it might due to back-ticks (`)  which I’m using for svg string concatenation, it’s ES6 feature and some browser does not support yet. Replace your properly formatted svg will do 🙂

 

dicksonkho

 

Leave a Reply

Your email address will not be published. Required fields are marked *