dom-to-image icon indicating copy to clipboard operation
dom-to-image copied to clipboard

doesn't generate image if it have srcset attribute

Open sasha8-1 opened this issue 6 years ago • 2 comments

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

sasha8-1 avatar Jun 01 '18 11:06 sasha8-1

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.

simoneb avatar Apr 04 '19 13:04 simoneb

any update on this issue?

realamirhe avatar Apr 26 '21 11:04 realamirhe