-
-
Notifications
You must be signed in to change notification settings - Fork 43
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
screenshots all black when using html file or string #117
Comments
I have the same problem. |
I am not currently able to reproduce this issue, could you provide the following ?
|
Hi @fkkjohn. I got the same error, and after I read this comment from @vgalin, I could notice that this could be just a permission problem. Actually I am using the lib as above, and it is working fine to me. htm = Html2Image(
custom_flags=[
'--no-sandbox'
'--remote-allow-origins=*',
'--hide-scrollbars'
],
temp_path=f'{getcwd()}/.tmp'
) |
Thank you, Paulo. I read the link you sent, but I'm not running Ubuntu on this computer. It's Windows 10. It could still be a permission problem as you suggest, so I'll have a look. However, I've since moved on to a different solution, so it's not a priority for me at the moment. Either way, thank you very much for the reply. |
I am getting the same, have tried putting in a background color via css but still the same. UPDATE:
|
Hey there,
Im using
V2.0.3
with python3.8.3
I can't get the basic functionality to work on my machine.
It works if I fetch an html page from the web, but not from local sources.
This example works fine
but if I download the webpage locally, and try it again
it fails.
I've tried with simpler examples, and html strings as well. All local sources give just a blank black image.
The text was updated successfully, but these errors were encountered: