Skip to content
A simple web service for making PNGs out of URLs.
Ruby CoffeeScript JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
.buildpacks
.gitignore
Gemfile
Gemfile.lock
Procfile
README.md
app.rb
config.ru
rasterize.js
weather.coffee

README.md

screenshotplz

A simple web service for making PNGs out of URLs. Requires Ruby 1.9 and phantomjs.

Local usage

bundle install
thin start
GET /300x300/www.nytimes.com

HTTP/1.1 302 Moved Temporarily
Location: http://localhost:3000/9c4729df7221e94c0f501a49a479e482b719d335.png
GET /weather/ottawa

HTTP/1.1 302 Moved Temporarily
Location: http://localhost:3000/9c4729df7221e94c0f501a49a479e482b719d335.png

Heroku

heroku apps:create --stack cedar --buildpack https://github.com/ddollar/heroku-buildpack-multi.git
git push heroku master
heroku config:add GEM_PATH=vendor/bundle/ruby/1.9.1 LD_LIBRARY_PATH=/usr/local/lib:/usr/lib:/lib:/app/vendor/phantomjs/lib PATH=bin:vendor/bundle/ruby/1.9.1/bin:/usr/local/bin:/usr/bin:/bin:/app/vendor/phantomjs/bin RACK_ENV=production
Something went wrong with that request. Please try again.