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
- Księgowość
- Zapasy
- PoS
- Project
- MRP
To pytanie dostało ostrzeżenie
1
Odpowiedz
3216
Widoki
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
Podoba Ci się ta dyskusja? Dołącz do niej!
Stwórz konto dzisiaj, aby cieszyć się ekskluzywnymi funkcjami i wchodzić w interakcje z naszą wspaniałą społecznością!
Zarejestruj się