Natim / Thumbnailer

A service that take an url and returns a thumbnail
9 stars 2 forks source link

Implement engine(s) to get (thumbnailed) screenshots of HTML pages #1

Open benoitbryon opened 12 years ago

benoitbryon commented 12 years ago
Feature: HTML to thumbnail engine
  In order to capture a screenshot of an HTML page
  As an internaut
  I want to use the Thumbnailer API

  Scenario: generate thumbnail of HTML page
    Given the page <content_url>  is in a HTML/XHTML document
    And the thumbnailer API available at <api_url>
    And a "html" engine is available
    When I access <api_url>/html?url=<content_url>&width=<width>&height=<height>
    Then I get an image which size is <width>x<height>

  Examples:
    | content_url | api_url | width | height |
    | http://www.example.com/ | http://localhost:8000/thumbnailer/ | 100 | 50 |
benoitbryon commented 12 years ago

See http://pypi.python.org/pypi/django-screamshot for a possible implementation.