This method only works on Node.js. I too was looking for a simple conversion from image to svg - however it is not that easy, but I did find a tool which could take simple images (black and white) and transform them into svg files, also result was much nicer, since it somehow smooth the edges out - however when trying with color images, it … We use optional third-party analytics cookies to understand how you use GitHub.com so we can build better products. Why shouldn't a witness present a jury with testimony which would assist in making a determination of guilt or innocence? SVG files are Scalable Vector Graphics Files that use XML based text format for describing the appearance of image. So, you can adjust them using any text editing software. The initial html is something like: which can get pretty complex after playing around with the editor features a bit. JavaScript JavaScript Reference HTML DOM Reference jQuery Reference AngularJS Reference AppML Reference W3.JS Reference Programming Python Reference Java Reference. By using our site, you acknowledge that you have read and understand our Cookie Policy, Privacy Policy, and our Terms of Service. The word Scalable refers to the fact that the SVG can be scaled to different sizes without losing any quality. Steps to convert HTML to SVG programmatically: Create a new C# console application project. Thanks for your help. Content editable div. Text based description of such files make them independent of resolution. SVG files are editable. Nevertheless thanks again for commenting. For an external SVG, you can use the same code when adding the