<commit_before># Photograph

TODO: Write a gem description

## Installation

Add this line to your application's Gemfile:

    gem 'photograph'

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install photograph

## Usage

TODO: Write usage instructions here

## Contributing<commit_msg>Update the readme<commit_after># Photograph

Photograph solves the issue of generating previews or thumbnails of
web-based documents. Think of generating a preview of a Google
Spreadsheet. As a such document is dom based, it may be difficult to get a preview
that truly reflects the original content. 

Photograph solves that problem by firing a chrome instance thanks to
capybara-webkit and sinatra to provides an easy way to interface it to
your needs. 

Obviously, it supports cropping to avoid reworking the image afterward.

Please remind that having a chrome instance, even if it is being reused
by all requests is still taking some time, aroung 600ms after the first 
request on my development machine. *Consider using photograph only if
you expect the same exact rendering of your 'web documents'*.

## Installation

Add this line to your application's Gemfile:

    gem 'photograph'

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install photograph

## Usage

Photograph can be used either directly through the Photograph::Artist
class or by its little sinata app. 

    @artist = Photograph::Artist.new("http://github.com")
    @artist.shoot!

    @artist.image
    # => MiniMagick instance you can toy with

## Contributing
{'fraction_non_alphanumeric': 0.05035054174633524, 'fraction_numerical': 0.0019120458891013384, 'mean_word_length': 4.032051282051282, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 4, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6825883', 'n_tokens_mistral': 436, 'n_tokens_neox': 401, 'n_words': 212}