brenden / node-webshot

Easy website screenshots in Node.js
2.12k stars 286 forks source link

SVG and tag picture doesn't show #174

Open jonatasnardi opened 7 years ago

jonatasnardi commented 7 years ago

Hello,

First of all, congratulations by the framework.

When I save my screenshot, doens't show the pictures between the tag and the SVGs doens't appear too.

Can you help me please?

Jonatas Nardi

turnerniles commented 7 years ago

Can you paste you code where you call webshot?

jonatasnardi commented 7 years ago

Screenshot: http://i.imgur.com/LNDaZQ3.png Code: http://i.imgur.com/Fl8nP0U.png

Look the screenshot, the svg icons renders with black background and with a different size and position.

Only tag SVG doesn't render. The picture tag I solved.

I'm basing on "basic.js"

I really need this to work. Thanks by help man!

turnerniles commented 7 years ago

Have you tried adding a renderDelay?

var options = { renderDelay: 6000 };

webshot('example.html', 'example.png', options, function(err) { });

jonatasnardi commented 7 years ago

I apply the renderDelay, but doesn't work too. I continue with the same problem :(

BDominik commented 7 years ago

Same here, I'm using the latest phantomjs with phanthomPath, but still not showing the SVG... Update: Okay, I figured out that it's not working only if I'm using local HTML file.

john-guerra commented 7 years ago

I had a similar issue, but it was an error on my svg. Now it's working