有没有什么免费的实用程序可以用来在centos上截取网页和网站的屏幕截图,并且可以通过php运行。
谢谢
最佳答案
有各种可用的命令行实用程序。最开始browser engines in headless X11之一然后截屏。一个特别常见的是 khtml2png
可以像这样从 php 使用(不确定是否有 CentOS 的预编译版本):
exec("khtml2png --width 800 --height 600 http://google.com/ img.png");
这里列出了更多:Command line program to create website screenshots (on Linux)
关于php - 使用PHP在CentOS上生成网站截图,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5466038/