brenden/node-webshot

Taking a screenshot of dynamic html with images in html

Opened this issue · 0 comments

Below is my code, I was unable to take screen shot with images img src attr. Could you guide me on this

var webshot = require('webshot');
var options = {
siteType : "html",
streamType : "jpeg",
defaultWhiteBackground : true,
quality : 100,
windowSize : {
width: 2000,
height: 1000
},

};

var html = "";

webshot(html, "our-world.jpeg" , options ,(err)=>{
console.log("inside");
if(err){
return console.log(err);
}
console.log("Image Success!");

});