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 43 html2image issues
Sort by recently updated
recently updated
newest added

I tried from command line and from Python as well, I always get a blank PNG file. Example: ``` $ hti -v -H kaya.al.html -S op.png -s 1024,768 -o ~/tmp/hti...

When I pass `--quiet`, the tool still spits out lots of info - presumably coming from the browser process? I expect a tool to have zero output when a "quiet"...

I am using Django to render an HTML file, then feed that file into html2image. I am using the latest release: `html2image==2.0.1` On Linux, using Chromium 93.0.4577.82 snap (Ubuntu 20.04)...

documentation
enhancement

Following #54. A way to toggle browsers' output on or off could be useful, especially if the information displayed is not related to errors or bugs that can be fixed....

enhancement
good first issue

I have a very small project on a Windows 10 machine with the following image in the file example.png: ![image](https://user-images.githubusercontent.com/70914876/136830798-ae0983a8-07fe-404f-a585-dbcd467602be.png) I try to make a screenshot of a simple html...

documentation

**i´m trying to convert html to png files, but it always return this error:** Traceback (most recent call last): File "c:\Users\...\CDCConverterWatchDog.py", line 8, in hti.screenshot_loaded_file(file=file) File "C:\Users\...\Python\Python39\lib\site-packages\html2image\html2image.py", line 193, in...

bug

Please add an option to screenshot at high dpi. I found that adding `--force-device-scale-factor=3` argument creates 3x high-res images. ``` command = [ f'{self.executable}', '--headless', f'--screenshot={os.path.join(output_path, output_file)}', f'--force-device-scale-factor=3', f'--window-size={size[0]},{size[1]}', *self.flags,...

Hi, hti.screenshot is working fine for us even if we have concern regarding performance. We have error messages during screenshots ``` 0615/164730.282582:ERROR:file_io.cc(91)] ReadExactly: expected 8, observed 0 [0615/164730.283193:ERROR:xattr.cc(63)] setxattr org.chromium.crashpad.database.initialized...

I'm trying to screenshot an html file, it seems like all Latin characters are displayed incorrectly. It should be an encoding issue, and I don't know how to solve it....