开发者

How can I get the thumbnail of a website? [duplicate]

This question already has answers here: Closed 12 years ago. 开发者_开发问答

Possible Duplicate:

Website screenshots using PHP

I want to create a script that will show the thumbnail of a site (let's say 400*300px ). I don't want sites like www.bitpixels.com .

So the answear could come in 2 ways:

1) You explain how could I take the screenshot of a website (using only PHP,ajax, etc,... no .NET or other stuff like that :D )

2) You know a website that offers this type of service for free and there's no limitation in the number of thumbs you can get, or their size.


You may want to try wkhtmltopdf (webkit-based html to pdf conversion), it also contains wkhtmltoimage, a version of it that outputs images. It's open source and if you have any sort of dedicated machine you should be able to use it. Otherwise I am not sure. Since it is webkit based it should provide you with a decent rendering of the page too.

Another great tool for this is PhantomJS

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜