开发者

How to take full snapshot of a web page? (scrollable size large)

I 开发者_JAVA技巧want to take a snapshot of a web page. The image should show the full content of the browser window (without the scroll bar I mean).

I want to do this dynamically using a PHP script.


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜