node-server-screenshot
node-server-screenshot copied to clipboard
Taking screenshot larger than window size
I changed the width and height options to be larger than my window size but the screenshot is still restricted to the size of my window. I'm on version 0.2.2. I tested it with your example:
app.fromURL(
'https://en.wikipedia.org/wiki/List_of_social_networking_websites',
'test.png',
{width: 1280, height: 17000, show: false},
(e) => e ? console.error(e) : console.log('done')
);
Hi SanathJ,
I am also facing the same issue. Were you able to get resolution for this issue or any alternative solution.
Scaling is not working for me.
Hi! I've tried to replicate with nighmare 3.0.1 (electron 1.x) and nightmare 3.0.2 (electron 2.x) and have not succeeded. The result generated by the snippet of code is correct.
What platform/OS and which node version are you using?
Did you try to make it work in an isolated project (only this packages installed) or does it have peer packages?
I used the code above to make sure I have screenshot of entire content. It's working. Earlier, I was trying to scale parameter to kind of zoom out entire page which is still not working