Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

I would like to know how to set the thumbnail of a screenshot of a website when someone submits that site to my directory. It would need to be automatically generated.

See an example

share|improve this question
add comment

2 Answers 2

There is a good service to do this but I'm afraid it's not available in English (only French or Spanish): http://robothumb.com.

share|improve this answer
add comment

I use Selenium and Firefox.

Selenium is a browser automation scripting framework with an API so that it can be called from a variety of programming languages. It allows you to remote control Firefox:

  • Create a new window of a specific size
  • Open a URL in that window
  • Save the visible portion of the webpage to an image (like a screenshot)

To make this work on a server, you have to get Firefox running "headless" in a virtual frame buffer.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.