About Img2Png

Img2Png is a simple web application designed to quickly convert images served from any web server into the PNG format.

This works with GIF and JPEG files, though at the moment only GIFs are thoroughly tested. In theory any format supported by ImageMagick should work, though there has been no examination of file size or bandwidth limitations when running live.

Usage

Apply the url of the source image as a string at the end of the current url.

http://png.heroku.com/http://www.google.com/intl/en_ALL/images/logo.gif/i.png
http://png.heroku.com/http/www.google.com/intl/en_ALL/images/logo.gif/i.png

Link directly to the source image and the server responds with a 302 message to redirect to the proper URL. This should be ok for viewing in the browser, but if you want to link directly to an image you should probably follow the above usage.

http://png.heroku.com/http://www.google.com/intl/en_ALL/images/logo.gif http://png.heroku.com/http/www.google.com/intl/en_ALL/images/logo.gif

Or you can paste in a URL to an image here:

Limitations

Img2Png does not do any caching, and does not save any images. All it does is download the source into memory and convert it to the new format. It runs on a single Heroku dyno using Ruby and Sinatra, with no built-in concurrency. Large source images may fail based on memory limitations or based on the server's ImageMagick installation.

Just throwing that out there.

Source, Issue tracking

Img2Png is open source software hosted on Github.com. Any issues or problems can be submitted there or on the Lighthouse page for the project.

http://github.com/sax/img2png
http://img2png.lighthouseapp.com/projects/45989-img2png/tickets