Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The screenshot of page is not full page #155

Open
nvkhoa0108 opened this issue Aug 27, 2024 · 3 comments · Fixed by #157
Open

The screenshot of page is not full page #155

nvkhoa0108 opened this issue Aug 27, 2024 · 3 comments · Fixed by #157

Comments

@nvkhoa0108
Copy link

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

@vgalin
Copy link
Owner

vgalin commented Aug 27, 2024

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

@nvkhoa0108
Copy link
Author

nvkhoa0108 commented Aug 28, 2024

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

@satheler
Copy link
Contributor

satheler commented Sep 2, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants