brenden / node-webshot

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

Support for retina screenshots #97

Closed suprememoocow closed 9 years ago

suprememoocow commented 9 years ago

Using options.zoomFactor is helpful for creating retina-quality screenshots.

Unfortunately, using zoomFactor:2 with shotSize: { width: 'all', height: 'all' } currently results in a image cropped at 50%.

This PR fixes this issue.

brenden commented 9 years ago

Thanks for fixing that

suprememoocow commented 9 years ago

No problem. Thanks for a great library!

pranny commented 8 years ago

options.zoomFactor does not seem to work for me. The screenshots are not retina.

berkaytheunicorn commented 8 years ago

my settings are

    quality:100,
    screenSize: {width: 1280,height: 720}, 
    shotSize: { width: 'all', height: 'all'},
    zoomFactor:2

I got 2560*1440 image but screenshot is just 50%, any example how to use this?

hojberg commented 8 years ago

I have this 50% issue too - any idea on resolution?