Open Felipe-Ferreira1 opened 5 years ago
First, I would figure out what exactly is not working. There are two major steps in this library: 1) conversion of an SVG to a PNG URI, and 2) downloading the PNG. You can check if PNG conversion is working by using the function svgAsDataUri
to get the PNG URI and log it or open it in a new tab. Then check the download functionality. You'll need to comment out this line that removes the download link from the DOM, then call saveSvgAsPng
and seeing if the download link is even present to the DOM. Doing those 2 things will help debug where exactly the problem is happening.
Good luck, and let me know what you find.
I'm using this project in a web extension for Firefox, but when I call the function in the Mac OS Firefox the module does not work, and I could not find any clue so far.