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

Why "the output_file parameter should be a filename" #106

Closed PaleNeutron closed 1 year ago

PaleNeutron commented 1 year ago

I'm sure a path could be acceptable with chrome's --screenshot parameter.

Why limit it to filename not path?

vgalin commented 1 year ago

To use and output path, you can use the output_path parameter like so:

hti = Html2Image(output_path='/my/path/')