tsayen / dom-to-image

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

Reduce workload of the image conversion #401

Open Selbi182 opened 2 years ago

Selbi182 commented 2 years ago

One of the features that I seem to miss is the lack of reducing the workload of the library. When I take a screenshot of an entire 4K screen, that understandably takes a lot of resources. I don't mind waiting one or two seconds, as long as it means it won't kill the smoothness of everything else on the website.

Unfortunately, that is currently not the case. Once I start the screenshot process, there is a good half second in which my website is completely unresponsive. Not a gigantic deal, but not that pretty.

Is there any way to reduce the workload of the library?