Html在javascript或python中进行映像 [英] Html to image in javascript or python

查看:102
本文介绍了Html在javascript或python中进行映像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

只是一个愚蠢的问题...
有什么办法可以创建一个图像,说png,与HTML页面的内容,只需点击一个按钮?

Just a dumb question... Is there any way you can create an image, say png, with the content of an html page, with a simple click of a button?

感谢所有关心的人。

感谢您的答案。但是我想要的是在JavaScript或者python中的一些代码,这将允许我从表或div创建一个图像。

Thanks for you answers. But what I wanted was some code in javascript or python that would allow me to create an image from a table or div.

推荐答案

这里是代码:

http://github.com/AdamN/python-webkit2png/

它需要webkit,xvfb(或X)和Qt4,最好在Ubuntu上运行。

It requires webkit, xvfb (or X) and Qt4, and works best on Ubuntu.

这篇关于Html在javascript或python中进行映像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆