tsayen / dom-to-image

Generates an image from a DOM node using HTML5 canvas
Other
10.32k stars 1.68k forks source link

doesn't generate image if it have srcset attribute #221

Open sasha8-1 opened 6 years ago

sasha8-1 commented 6 years ago

Use case: description, code

<img> tag doesn't work well if it have srcset attribute

peek 2018-06-01 14-40

example

Expected behavior

The library had to generate an image

Actual behavior (stack traces, console logs etc)

Generated image is empty

Browsers

Chromium v. 66 Firefox v. 60

simoneb commented 5 years ago

Yep indeed it doesn't work. My workaround, when using Gatsby and the gatsby-image module, was to use a custom fragment which excludes the srcSet attribute.

realamirhe commented 3 years ago

any update on this issue?