0

I used dom-to-image to get the screenshot of svg, it worked successful on Chrome, but it will lost some svg layers on Safari. Is there any way to get screenshot of svg on Safari?

wow
  • 11
  • 1
  • Just draw it into a canvas? Convert it to a data URL (`data:image/svg+xml;charset=utf8,${encodeURIComponent(svg.outerHTML)}`), make that the source of an image, then either draw that image directly to a similarly sized canvas or use the image directly. – somethinghere Jun 16 '22 at 12:35
  • Please provide enough code so others can better understand or reproduce the problem. – Community Jun 16 '22 at 13:26

0 Answers0