Posts tagged ‘sinatra’

img2png

I just pushed a new web tool live. It’s called Img2Png, and it provides a simple mechanism for converting online images into PNG files. Basically, all you have to do is rewrite the image URL into one that points to png.heroku.com.

http://png.heroku.com/http/path/to/image.gif

This will redirect to a new url, which has a .png extension:

http://png.heroku.com/http/path/to/image.gif/i.png

This is pretty rough so far, especially since it was thrown together in less than four hours. The main downside is that I’ve only tested it on GIF files. It also relies on ImageMagick, which is kind of wonky on my computer. So… I have tests written for everything, but I need to loop back in later and run them once I get libpng and IM to talk nicely on my laptop.

http://png.heroku.com
http://github.com/sax/img2png

Not sure if this will be interesting to anyone else, but if anyone has improvements shoot them my way or add tickets on github. I set up a Lighthouse page for the project, as well.