Hi,
I want to convert HTML to image file how can i do that.
Thanks
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Buchhaltung
- Lager
- PoS
- Project
- MRP
Diese Frage wurde gekennzeichnet
1
Antworten
3218
Ansichten
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
Diskutieren Sie gerne? Treten Sie bei, statt nur zu lesen!
Erstellen Sie heute ein Konto, um exklusive Funktionen zu nutzen und mit unserer tollen Community zu interagieren!
Registrieren