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

getting blank image after setting 'temp_path' #143

Open
Lee-7723 opened this issue Apr 3, 2024 · 0 comments
Open

getting blank image after setting 'temp_path' #143

Lee-7723 opened this issue Apr 3, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Lee-7723
Copy link

Lee-7723 commented Apr 3, 2024

from html2image import Html2Image

render = Html2Image(browser='edge', output_path='./tmp', temp_path='./tmp', keep_temp_files=True)
img_path = render.screenshot(html_str='hello world', save_as=f'test.png')[0]
print(img_path)

this code gives me an blank png. if i remove temp_path='./tmp' then it's fine.
if i give it an absolute path it seems work as well. so im guessing this doesn't support relative path?

@vgalin vgalin added the bug Something isn't working label Jul 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants