Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

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

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

Your Answer


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.