bubkoo / html-to-image

✂️ Generates an image from a DOM node using HTML5 canvas and SVG.
MIT License
5.4k stars 505 forks source link

in safari, can't translate Img with svg href toPNG #402

Open roger-Guo opened 1 year ago

roger-Guo commented 1 year ago

in safari, can't translate Img with svg href toPNG

Expected Behavior

can translate Img with svg href toPNG

Possible Solution

Steps To Reproduce

please open the demo with react context(htmlToImageDemo.txt)

Error Message & Stack Trace

```txt ```

htmlToImageDemo.txt

Additional Context

Your Environment

vivcat[bot] commented 1 year ago

👋 @roger-Guo

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.

urbancamo commented 4 months ago

I've packaged up the code that @roger-Guo provided as I'm also experiencing the same issue, you can find the code in the repo https://github.com/urbancamo/html-to-image-safari-failure that can be downloaded and run. Basically htmlToImage.toPng fails on Safari but works on Chrome and Firefox.

HassanFerdous commented 2 months ago

I've packaged up the code that @roger-Guo provided as I'm also experiencing the same issue, you can find the code in the repo https://github.com/urbancamo/html-to-image-safari-failure that can be downloaded and run. Basically htmlToImage.toPng fails on Safari but works on Chrome and Firefox.

Hi, @urbancamo. I am also facing the same issue. did you find any solution?