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

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

Mirror images with Paperclip

6. February 2010

While implementing an awesome design, I needed to dynamically create a mirror effect on some thumbnails. Since I’m more or less dedicated to Paperclip, I decided to see if it could be done, without any monkeypatching. Here’s what I came up with.

Read on 1 comments Share paperclip, imagemagick

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