Open scorpion81 opened 1 year ago
Forget to mention this: https://stackoverflow.com/questions/67501093/passthrough-is-not-supported-gl-is-disabled
I tried the flags --disable-software-rasterizer', '--disable-gpu',
'--disable-features=DefaultPassthroughCommandDecoder'
according to this post, but no avail unfortunately.
Hi @scorpion81!
Do you know how to omit XXXX bytes written to file /path/to/image
message?
I tried to redirect standard output but it's not working:
import contextlib
hti = Html2Image()
hti.output_path = destination_dir
with open(os.devnull, 'w') as devnull:
with contextlib.redirect_stdout(devnull):
hti.screenshot(html_str=html, save_as=img_file)
When html2image is invoked from a python script inside blender 3.4, under linux, like in the following snippet
this message is printed repeatedly:
Obviously the image generation succeeded anyways, i also get an according output image like
I tried with changing settings in chrome and chromium , passing different flags etc. Without the mentioned additional flags, there were even more error messages like:
which basically causes the script calling into html2img to hang indefinitely.
Hmm if bytes were actually written into the image, is there a way to atleast stop the repetetition of the calls ? Together with the many printouts this massively drops the performance, or even more exactly spoken, i have to hit ctrl c a few times to break out of that loop (but finally I get the image)
Do you maybe have some hints what flag combinations might stop those error outputs completely ?