You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While running above code I noticed that the temporary files do not get deleted in the designated location.
After I had issues with the system default TEMP driving increasing in size with large numbers of conversions, I switched to an alternate location.
I checked the method 'screenshot' and saw that temporary files only get deleted in the case of 'html_str' call.
However, for 'html_file' no such method was present. During the 'load_file' operation the original *.html got copied to the temp_path, but was never removed.
To fix I created a pull request.
The text was updated successfully, but these errors were encountered:
' import Html2Image
temp_path = 'D:\temp\'
hti = Html2Image(output_path=path,
custom_flags=["--headless"],
temp_path=temp_path,
keep_temp_files=False)
hti.browser.use_new_headless = None
While running above code I noticed that the temporary files do not get deleted in the designated location.
After I had issues with the system default TEMP driving increasing in size with large numbers of conversions, I switched to an alternate location.
I checked the method 'screenshot' and saw that temporary files only get deleted in the case of 'html_str' call.
However, for 'html_file' no such method was present. During the 'load_file' operation the original *.html got copied to the temp_path, but was never removed.
To fix I created a pull request.
The text was updated successfully, but these errors were encountered: