We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi!
First of all - Thanks for this amazing package!
I have the following python code:
from html2image import Html2Image def htmlToImage(str): x=str.split('&') hti = Html2Image(custom_flags=['--virtual-time-budget=70000', '--hide-scrollbars']) hti.output_path = x[0] css = "" hti.screenshot(html_file=x[1],css_str=css,save_as=x[2],size=(int(x[3]),int(x[4])))
The package is unable to load images inside the HTML. The images render with their 'alt text'. Example:
I'm not sure why this might be happening?
I know there might be a very simple solution to this, but I have spent way too many hours resolving this! Any help here would be highly appreciated.
The text was updated successfully, but these errors were encountered:
Hi, could you take a look at my comment here and tell me if that helps? Basically, using absolute paths for the images should do the trick.
Sorry, something went wrong.
No branches or pull requests
Hi!
First of all - Thanks for this amazing package!
I have the following python code:
from html2image import Html2Image
def htmlToImage(str):
x=str.split('&')
hti = Html2Image(custom_flags=['--virtual-time-budget=70000', '--hide-scrollbars'])
hti.output_path = x[0]
css = ""
hti.screenshot(html_file=x[1],css_str=css,save_as=x[2],size=(int(x[3]),int(x[4])))
The package is unable to load images inside the HTML. The images render with their 'alt text'. Example:
I'm not sure why this might be happening?
I know there might be a very simple solution to this, but I have spent way too many hours resolving this! Any help here would be highly appreciated.
The text was updated successfully, but these errors were encountered: