qq15725 / modern-screenshot

📸 Quickly generate image from DOM node using HTML5 canvas and SVG
https://www.toolpkg.com/image/html-to-image
MIT License
457 stars 32 forks source link

scale is not work for canvas element #77

Open mahoushoujoarale opened 5 months ago

mahoushoujoarale commented 5 months ago

Steps To Reproduce

image

As above, when scale is set to a value which is greater than 1, plain html element is scaled as expected while canvas element is not.

Error Message & Stack Trace

```txt ```

Your Environment

mahoushoujoarale commented 5 months ago

@qq15725 Is there a way to solve this problem? It's quite common to set scale to 2 for macOS User, because macintosh uses a retina screen.