使用PHP从HTML源生成屏幕截图 [英] Using PHP to generate screenshots from an HTML source
本文介绍了使用PHP从HTML源生成屏幕截图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个想法,可以动态生成网页的png或jpeg屏幕截图。最终用户永远不会看到这些页面,但HTML会变成屏幕截图而终端用户会看到该截图。
I've got an idea for a site that would generate png or jpeg screenshots of webpages on the fly. The end user would never see the pages, but the HTML would be turned into a screenshot instead and the end user would see that screenshot.
我怎样才能开始这个?我想我正在寻找的是某种PHP函数,它将HTML作为参数,然后在指定的位置生成一个图像文件。
How can I get started on this? I guess what I'm looking for is some kind of PHP function that takes the HTML as an argument and then produces an image file in a specified location.
推荐答案
http://www.zubrag.com /articles/create-website-snapshot-thumbnail.php
这篇关于使用PHP从HTML源生成屏幕截图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文