是否有任何可用的PHP脚本可以抓取url的屏幕截图


Are there any available PHP script that can grab a screenshot of the url?

就像browsershots.org一样,他们可以有我输入的url的截图,是否有任何可用的脚本?

使用wkhtmltopdf及其wkhtmltoimage变体非常容易:

exec("./wkhtmltoimage http://example.org/ image.png");

请注意,输出文件名必须位于可写位置