html2image icon indicating copy to clipboard operation
html2image copied to clipboard

The screenshot of page is not full page

Open nvkhoa0108 opened this issue 1 year ago • 3 comments

Hi,

I got a problem when I render image using Html2Image. The screenshot of page is not full page. It has blank in end page. Please help me solve this problem. Thanks!

blank_not_fullpage

nvkhoa0108 avatar Aug 27 '24 14:08 nvkhoa0108

Hey, could you provide the code you're using to generate this screenshot?

vgalin avatar Aug 27 '24 18:08 vgalin

Hi Vglin, Here is my code:

from html2image import Html2Image
hti = Html2Image(output_path = r'E:/wdir/python/vnpt_qni/src/tmp/', browser="chrome", custom_flags=["--no-sandbox",], temp_path=r'E:\wdir\python\vnpt_qni\src\tmp')
print(hti.browser)
print(hti.size)
hti.screenshot(url='https://www.geeksforgeeks.org/how-to-render-html-to-an-image/', save_as= 'test.png')

Currently , I'm using Html2image version 2.0.3, I try to upgrade to 2.0.4.3 but I still met the same problem. However I use others computer that is work fine.
image

nvkhoa0108 avatar Aug 28 '24 00:08 nvkhoa0108

Any updates on this case? I'm experiencing the same issue 😞

satheler avatar Sep 02 '24 20:09 satheler