Open rushkii opened 1 year ago
👋 @rushkii
Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. To help make it easier for us to investigate your issue, please follow the contributing guidelines.
We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.
Same for me, PNG won't convert in Firefox only! Im trying to use it to download dendrograms, large ones won't download while smaller ones download just fine. Im suspecting the svgToDataURL function in your repo - https://github1s.com/bubkoo/html-to-image/blob/master/src/util.ts#L195 possibly the encodeURIComponent not working properly in Firefox because of the size of the string in some cases. "encodeURIComponent() is not designed to handle very large input strings, and attempting to encode a very large string can cause performance issues or even crash the browser. To avoid this problem, you should consider breaking the input string into smaller pieces and encoding each piece separately." Hopefully this will get fixed soon!
I want to convert HTML element to a PNG, I was waiting the conversion but the package is not convert to a PNG if the element has
background-image
style. This only happens on Firefox, I've tried on MS Edge and it is working normally and tried on Chrome mobile too and it's working.Expected Behavior
Convert to PNG
Current Behavior
html-to-image
not converting as it's should be on Firefox when the HTML element hasbackground-image
style.Possible Solution
I don't have a solution
Steps To Reproduce
Code:
Additional Context
Your Environment
NextJS (13.2.3), ReactJS (18.2.0), Visual Studio Code.