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
ImgKit takes a long time to convert an html file to a jpg file (3 minutes) #56
Comments
When i keyboard interrupt in the middle, the function appears to be stuck within what appears to be a timeout.
|
How about the time duration for other sites? |
So I just opened a new issue and it might be related to this: The conversation finally completed but I have no idea how long it took due to leaving it over night. I attached the .html to issue 77. I think if we had a timeout flag for embedded URLs in the HTML may fix our issues but idk. |
Okay so I found my issue. It ended up being an IPS doing TCP-DROP instead of TCP-REST. In my opinion a flag to declare a timeout for specific TCP connection would be a good idea to prevent slow servers failing to respond to hold up the code. I would imagine that this would be a pretty big feature request though. Going to close out #77 |
Any updates? I got the same issues.. |
imgkit.from_file(html_filename, image_filename, options={"width": 660, "disable-smart-width": ""})
is what I ran, and for some reason, at most times, this will take 3 minutes to run, and just yesterday, and only for yesterday, was it running at around 3 to 10 secs. The html, I am trying to render, is not important to mention, as the same problem happens with "www.google.com", about 3 minutes as well. I am running on Ubuntu 20.04.
Extra Detail:
for most of the time, there is no output in the console, and only in the last few seconds, the output appears
The text was updated successfully, but these errors were encountered: