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
344 stars 44 forks source link

Can I use chromium?That can't find chromium #151

Closed Starry-Sky-World closed 1 month ago

vgalin commented 1 month ago

I'll probably need more details to be able to help you, please provide specific error messages and the OS you're using, and the code you use to reproduce this problem.

Chrome, Chromium or even Edge can be used with html2image, but they'll have to be installed on your machine, if html2image can't find them automatically, you'll have to provide it a path, like so :

hti = Html2Image(browser_executable='/absolute/path/to/executable'