# Shutterbug [![Build Status](https://travis-ci.org/concord-consortium/shutterbug.png?branch=master)](https://travis-ci.org/concord-consortium/shutterbug) [![Code Climate](https://codeclimate.com/github/concord-consortium/shutterbug.png)](https://codeclimate.com/github/concord-consortium/shutterbug) A rack utility that will create and save images (pngs) from parts of your html's documents current dom. These images become available as public png resources in the rack application. Currently shutterbug supports HTML, SVG and Canvas elements. use Shutterbug::Rackapp ## Installation Add this line to your application's Gemfile: gem 'shutterbug' And then execute: $ bundle Or install it yourself as: $ gem install shutterbug ## License ## * [Simplified BSD](http://www.opensource.org/licenses/BSD-2-Clause), * [MIT](http://www.opensource.org/licenses/MIT), or * [Apache 2.0](http://www.opensource.org/licenses/Apache-2.0). See License.txt for more information. ## Usage After adding `use Shutterbug::Rackapp` to your config.ru file, you can convert pieces of your web-page into png images. Just follow these steps: 1. include the following javascript in your pages: `` 1. Elsewhere in your javascript call `getDomSnapshot($("#sourceDomID"),$("#imageOutputDomId"));` This will replace the contents of `$("#imageOutputDomId")` with an `