My first Sinatra app

Posted by Colin A. Bartlett Sat, 02 Aug 2008 16:07:00 GMT

While playing with Sinatra a bunch as part of the prep for my Philly on Rails talk, I came up with a few ideas for microapps that I thought would be perfect for Sinatra.

The first of these I call Attributr. It’s a very simple app that accepts the URL of a Flickr photo and returns that photo with proper attribution overlayed in the lower right corner. I often use photos from Flickr that are Creative Commons licensed. And I’ve often thought it would be handy to get the image with attribution right from Flickr so it’s ready to just drag into my presentation or whatever.

I used GraphicsMagick to add the text. In the past, I’ve used ImageMagick for such things, but I heard GM was easier to get installed. Indeed, it was pretty simple. On Ubuntu, it’s as easy as apt-get.

This is running on our newest production server under Passenger. I couldn’t believe how easy Rack and Passenger together make deploying tiny apps like this a breeze.

I’d love some feedback on Attributr if you ever have occasion to use it.

Comments

Leave a response

Comments