Image resizing, or other post-processing of Paperclip attachments, can be a long running task in some scenarios. Luckily for us, it’s pretty simple to hook on to Paperclip and run the heavy parts as a background job. This example goes through a normal photo upload.
Exif data is a must-have for browsing through your photos. Adobe Bridge has it, F-Spot has it, and so does about every filebrowser out there, so why not include it in your own database when uploading these photos to your app?
Ever had a “oh-sh*t” moment when doing something related to mailing in development mode? This little plugin for rails prevents you from having any more of those moments, in a very clever way.
When applying a new design to one of our projects, we were in a need of a Paperclip style with rounded corners. Luckily for us we had Paperclip’s :convert_options and strong ImageMagick-fu.
Tonight I decided to try making NGINX handle my zip generating, to save the server some work, and the user of some frustration waiting for background jobs to finish. Here’s what I came up with.