How To Display Svg Image In Html. But it works very good. Here is an example.
Get the Base64 image var imageURL canvas. InnerHTML. SVG files displayed with are treated as an image.
To use this direct inline representation of an SVG image in our document all we have to do is copypaste the entire svg content from a SVG file into the DOM.
Get the Base64 image var imageURL canvas. SVGs Inline in HTML. Or you might want to download the image I did not use this method so you might want to refine it a bit window. QuerySelector png-container.