将HTML转换为图像 [英] Converting HTML to an Image

查看:149
本文介绍了将HTML转换为图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


可能重复:

将URL转换为屏幕截图(脚本)。

PHP:如何使用php捕获浏览器窗口屏幕?


我有一个网址,我想将该网页截图转换为图片。如果我们可以使用PHP或其他可以与PHP / Linux一起使用的工具,请告诉我。

解决方案

快门截图工具可以做到这一点。



它位于菜单中:文件 - > - > Web



可以在同一系统上与Linux和PHP一起使用。请参阅从PHP调用的命令行选项的联机帮助页。 / p>

Possible Duplicates:
Convert URL to screenshot (script).
PHP: How to capture browser window screen with php?

I have a URL and I want to convert that webpage screenshot to an image. Please let me know if we can do this using php or some other tools that can be used with PHP/Linux.

解决方案

The shutter screenshot tool is able to do that.

It's in the menu: File -> New -> Web

Can be used with Linux and PHP on the same system. See the manpage for commandline options to be invoked from PHP.

这篇关于将HTML转换为图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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