html2image icon indicating copy to clipboard operation
html2image copied to clipboard

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.

Results 42 html2image issues
Sort by recently updated
recently updated
newest added

I have an Ubuntu for development and the module works as well with this code; ```python def png_invoice(request, order_token): order = Order.objects.get(token=order_token) from html2image import Html2Image hti = Html2Image( custom_flags=['--no-sandbox'])...

Hello, explain me please, how should I use external assets with your library? ![image](https://user-images.githubusercontent.com/43337612/174243248-bf0e7707-b15e-4ab6-9093-2dc88c5460b5.png)

I'm trying to generate an image of a widget generated by a thirdparty javascript, the full code is as follows: ```python from html2image import Html2Image hti = Html2Image( custom_flags=['--virtual-time-budget=10000'], )...

When running as root, this error pops up and no images were saved. [0517/064559.081037:ERROR:zygote_host_impl_linux.cc(90)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180.

The `--dump-dom` flag would be very beneficial for processing as sometimes you need some other return values from chromium (e.g. pixel perfect coordinates of the generated images, something which javascript...

Hello, I added the method `_remove_tmp_file` which is supposed to remove the temporary files created when we supply a HTML string to `screenshot()` instead of providing a file. This prevents...

[Issue to be edited / formatted later] See : https://stackoverflow.com/questions/71001835/how-to-convert-a-formated-table-in-html-to-image-png-in-colab This is a Chrome/Chromium related issue, but it would be interesting to see if a workaround exists.

```python hti = Html2Image(custom_flags=['--disable-remote-debugging', '--no-sandbox']) try: hti.screenshot(html_file='index1.html', save_as='Image-1.jpg', size=(1200, 1200) ) hti.screenshot(html_file='index2.html', save_as='Image-2.jpg', size=(1200, 1200) ) except: print(e) return ['Image-1.jpg', 'Image-2.jpg'] ```

I am using a Red Hat Enterprise Linux machine (version 8.3) with Python 3.6.8 and the current version of html2image. On this distribution, several choices are presented when we want...

I've been using variants for the parameters `--browser` and `--chrome_path` with no success. The program always does the same thing. It is poorly documented what these values should be. What...