跳至内容
菜单
此问题已终结
1 回复
3220 查看

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

形象
丢弃
最佳答案

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

形象
丢弃