vgalin / html2image

A package acting as a wrapper around the headless mode of existing web browsers to generate images from URLs and from HTML+CSS strings or files.
MIT License
354 stars 43 forks source link

is there a way to get a higher resolution/dpi image ? #84

Closed Faisal-Hajari closed 1 year ago

Faisal-Hajari commented 2 years ago

pretty much it. I'm getting everything right, but the res is bad when I zoom in. is there a way to increase it ?

LY1806620741 commented 1 year ago

@Faisal-Hajari Have you found a way? I just met this problem

LY1806620741 commented 1 year ago

@Faisal-Hajari 我找到了一个方法,因为我是本地渲染的,因此只需要用python修改css样式body {zoom: 4;}就可以了。I found a method. Because I render locally, I only need to modify the css style with python body {zoom: 4;} That's all right.