loo.no

Home, sweet home
About me Login

Background processing with Paperclip

27. July 2009

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.

Read on 2 comments Share paperclip, delayed_job, rails

Adding Exif data to your Image model with exifr

27. July 2009

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?

Read on 0 comments Share rails, paperclip, exif, exifr

Redirect all mails while developing your rails app

27. July 2009

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.

Read on 0 comments Share rails, mail, plugin

Rounded corners with Paperclip

10. August 2009

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.

Read on 10 comments Share paperclip, ruby, rails

Easy zip generating with Rails, Nginx & Paperclip

20. November 2009

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.

Read on 3 comments Share rails, nginx, paperclip, mod_zip, passenger

Stay updated

  • Articles RSS
  • Comments RSS

Credits

  • Stickers by Dryicons
  • Phusion Passenger
  • Ruby on Rails
  • Blueprint CSS
  • HTML5 & Modernizr
  • Skalar AS

2010 © Lars O. Overskeid