Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

39 lines (22 sloc) 1.104 kb

Photograph-service

photograph-service is a minimalist sinatra based web service that allows you to take screenhots of web pages. Most of the code lives in Photograph whereas photograph-service is just the sinatra part that had been extracted.

Installation

Add this line to your application's Gemfile:

gem 'photograph-service'

And then execute:

$ bundle

Or install it yourself as:

$ gem install photograph-service

Usage

Photograph::Service

A small Sinatra application is provided. You can launch it with:

$ bundle exec photograph -h 127.0.0.1 -p 4567

Then it can be used as following:

GET http://127.0.0.1:4567/shoot?url=rubygems.org

It also supports cropping, waiting for a dom selector to match.

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request
Jump to Line
Something went wrong with that request. Please try again.