I am working on converting svg to png
. For this conversion I am using canvg
. This conversion is working fine for normal svg
with svg elements like rect
and circle
, But it doesn't work for svg which contain image
element.I searched a lot but i didn't found any solution.
Here is the DEMO, which i have tried with image element.
I don't know what is happening wrong here. How to use canvg for svg image elements.
Any suggestions should be appreciated.
NOTE : Here is the working demo with svg circle