Skip to content
This repository was archived by the owner on Jun 25, 2023. It is now read-only.
sax edited this page Sep 14, 2010 · 2 revisions

img2png is a small web app that converts images to the PNG format on the fly. It was built in Sinatra, and currently runs on heroku at http://png.heroku.com

Usage is simple, and is entirely url-based. If you have an image at http://www.google.com/intl/en_ALL/images/logo.gif, then all you need to do is rewrite the URL as http://png.heroku.com/http/www.google.com/intl/en_ALL/images/logo.gif/i.png

Alternatively you can link directly to the image http://png.heroku.com/http/www.google.com/intl/en_ALL/images/logo.gif, and the site will redirect. This is just to provide a proper extension, though it shouldn’t really matter. If you link to converted images, however, make sure to include the ‘/i.png’ at the end, just to make sure that browsers don’t balk on a 302 code.

Clone this wiki locally