3

我想拍摄网页的快照。该图像应显示浏览器窗口的全部内容(我的意思是没有滚动条)。

我想使用 PHP 脚本动态地执行此操作。

4

1 回答 1

1

One option would be to invoke something like CutyCapt. It does require an X server, but as indicated in the docs you can use Xvfb (a headless, virtual X server) to fill in that position. Try to recycle the same Xvfb instance each time though, to save resources.

There are also various web service providers offering services like this - eg, webthumb. This may be worth considering as well, depending on how much resources you have, and how much CutyCapt takes.

于 2011-01-21T12:58:09.037 回答