生成网页的图像(例如jpg)? [英] generate image (e.g. jpg) of a web page?

查看:70
本文介绍了生成网页的图像(例如jpg)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想创建一个网页外观的图像, 例如创建html +图片的小缩略图. 它不一定是完美的(例如Flash/javascript渲染).

I want to create an image what a web page looks like, e.g. create a small thumbnail of the html + images. it does not have to be perfect (e.g. flash /javascript rendering).

我将在Linux上调用使用代码,理想情况下将是一些Java库,但是命令行工具也将很酷.

I will call use the code on linux, ideally would be some java library, but a command line tool would be cool as well.

有什么想法吗?

推荐答案

尝试 CutyCapt ,命令行公用事业.它使用Webkit进行渲染并以各种格式(SVG,PNG等)输出.

Try CutyCapt, a command-line utility. It uses Webkit for rendering and outputs in various formats (SVG, PNG, etc.).

这篇关于生成网页的图像(例如jpg)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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