brenden / node-webshot

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

Images not loading #196

Open danieltigse opened 7 years ago

danieltigse commented 7 years ago

I am taking a webshot of my own page that is rendered by my own server. Sometimes I have images with URLs like this:

https://mail.criptext.com/embedded/buscar-direccion_1492699395537.png?u=100

The problem is that the image is not render in the webshot

yna8335zp0vygb9j1qj8pbi7ex65514d5eidx6r_m

I have noticed that the image doesn't render beacuse the image is created using a read stream of node, like this:

return fs.createReadStream(imageDir, {'bufferSize': 4 * 1024}).pipe(res);

Do you have a workarround for this?