Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
1 Antworten
3218 Ansichten

Hi,
I want to convert HTML to image file how can i do that.
Thanks

Avatar
Verwerfen
Beste Antwort

Hi,
You can convert html to image file using imgkit package with the following code.

import imgkit
imgkit.from_file(your path to the source file , destination path with image format with file name)

For example

imgkit.from_file("user/downloads/filename.html","user/downloads/filename.jpg")

Regards

Avatar
Verwerfen