tsayen / dom-to-image

Generates an image from a DOM node using HTML5 canvas
Other
10.21k stars 1.68k forks source link

QUESTION: Possible to just capture the current viewport ? #421

Open JeremyBradshaw7 opened 2 years ago

JeremyBradshaw7 commented 2 years ago

The fact that it captures the whole scrolling div is a plus, but in one instance I only want to capture the current viewport, so that the image dimensions match the screen dimensions - is this possible?