node-server-screenshot icon indicating copy to clipboard operation
node-server-screenshot copied to clipboard

Taking screenshot larger than window size

Open SanathJ opened this issue 5 years ago • 3 comments

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')
                  );

result

SanathJ avatar Sep 28 '19 14:09 SanathJ

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.

sukhvir148 avatar Feb 05 '20 18:02 sukhvir148

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?

legraphista avatar Feb 06 '20 17:02 legraphista

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

sukhvir148 avatar Feb 06 '20 18:02 sukhvir148