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.
354
stars
43
forks
source link
An error occurred: the output_file parameter should be a filename and not a path. #152
Closed
Cryptogevity closed 2 months ago
hti = Html2Image(output_path="/tmp/",browser_executable="/opt/chrome/chrome",custom_flags=['--headless',"--disable-gpu","--no-sandbox","--disable-dev-shm-usage"],browser="chromium") hti.output_path = output_image_folder_path hti.screenshot(html_str=html, css_str=css, save_as=output_image_path)
And here is the error: Change the output path by modifying the output_path attribute.
i believe i have specified the output path