问题
I want to create website thumbnails (screenshots) using php. I have a dedicated server running centos 5.5 so I can install software on it.
I need a free solution to create thumbnails of websites on a production server without running X server. (If I was to run X server how much difference would it make to the performance).
I would also appreciate if you could provide me with any free web services which could help me get the website thumnails and download them to my server.
回答1:
Try this, I used it when I was building a site that required thumbnails of other websites:
http://www.thumboo.com/
Note that you will need to sign up for the API.
Hope this helps and that I understood your question
回答2:
To take a virtual screenshot of a website, use khtml2png. It uses libkhtml, the rendering engine used by the konquerer brower, and imagemagick.
来源:https://stackoverflow.com/questions/4581276/website-thumnails-screenshots