tsayen / dom-to-image

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

How to get image from coordinates? #337

Open itesainnovation opened 4 years ago

itesainnovation commented 4 years ago

It is possible to get an image from passing x and y coordinates? I have content that is displayed on top of each other and i don't want to export a single dom node. Instead i wan to crop for example, the body element from x to x2 and from y to y2.

Thanks!