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

I am trying to capture an <img> whose src is base64 data. Works great on desktop. Nothing renders on mobile. #414

Open jonathanrstern opened 1 year ago

jonathanrstern commented 1 year ago
const dataUrl = await htmlToImage.toPng(photoContainer, {
          quality: 1,
          pixelRatio: 5,
          cacheBust: true,
        });

Works on desktop. Fails on mobile (just showing white background).

stu442 commented 8 months ago

I'm having the same problem. Did you solve it?

kamilpodlasek commented 8 months ago

I had the same problem. I solved it by switching to this library: https://github.com/qq15725/modern-screenshot

jonathanrstern commented 8 months ago

Yep me too!!On Nov 7, 2023, at 9:00 AM, Kamil Podlasek @.***> wrote: I had the same problem. I solved it by switching to this library: https://github.com/qq15725/modern-screenshot

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>