Render SVG images to canvas
masterIf librsvg is installed, you can render SVG images onto a canvas context by loading them as an Image object. Note that this process rasterizes the SVG; it does not preserve the original SVG vector data.
const img = new Image()
img.onload = () => ctx.drawImage(img, 0, 0)
img.onerror = err => { throw err }
img.src = './example.svg'