bubkoo / html-to-image

✂️ Generates an image from a DOM node using HTML5 canvas and SVG.
MIT License
5.4k stars 505 forks source link

Change DPI of output JPEG #375

Open Arepis123 opened 1 year ago

Arepis123 commented 1 year ago

Is there any way to increase the DPI because I cannot find a way to do it? I already change the canvasWitdh and canvasHeight but the dpi remain the same as default (96dpi)

vivcat[bot] commented 1 year ago

👋 @Arepis123

Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. To help make it easier for us to investigate your issue, please follow the contributing guidelines.

We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.