brenden / node-webshot

Easy website screenshots in Node.js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Images not loading

danieltigse opened this issue · comments

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?