tsayen / dom-to-image

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

dom to image is missing embedded image added using Raphael #137

Open D78 opened 7 years ago

D78 commented 7 years ago

I use Raphael JS to add an image to dom and then I use toPng function to get an image of the dom. I get an image that doesn't contain the image added using Raphael.

Here is an image of the web page I'm trying to take a picture of. The

highlighted blue contains an svg element created using Raphale JS. Dom-to-image doesn't capture this element.

capture

Here is the svg element:

capture1

Am I doing anything wrong?

  • [ ] Chrome 49+
  • [ ] Firefox 45+
ghost commented 6 years ago

I'm experiencing a similar Issue, actually.

I have a generated SVG, but the image tag within it is not being detected by DomToImage:

screen shot 2017-11-09 at 4 30 31 pm

Otherwise, everything else works great!