RSS Feed
KBlog | notes on design, business, coding, and other geekitude

Kropper: a free, open-source image cropper for Rails apps

Wednesday, Jun 27, 2007

I finally had the time to put the finishing touches on my first open-source Rails projectKropper, an easy-to-use image cropper that’s well-suited to cropping user-profile images and other cases where you want a cropped image to have a certain aspect-ratio.

Features

  • It’s easy to use, and it looks pretty sweet.
  • Very little Ruby code to add to your app, especially if you’re using attachment_fu to handle images.
  • It works with either ImageScience or Rmagick as the backend image processor.
  • It’s been tested in IE 6 & 7, Firefox 1.5 & 2, and Safari 2.0.4.
  • You can decide whether images are just cropped to the shape of your cropping stencil, or also resized to actual size of the stencil.
  • You can easily change the UI around—the appearance, size, and shape of everyting, including the cropping canvas and cropping stencil, are defined with CSS.

Here’s what it looks like. Click on the screenshot to go to the demo site, try it out, and get the source for Kropper (and the whole demo site).

Kropper screenshot

Let me know what you think of it! Now if I can just find time to finish my Captcha plugin…

Update: Kropper now has a rubyforge project page!

Tools

Add to Del.icio.us

Tags

design

projects

Ruby on Rails

open source

Reader Comments

Cool product! We have been looking for something like this in Rails. We’ll play around with it and see what we can do with it.

Its really user friendly.

—Lance

Thanks! Let me know if you have any questions about the code, and let me know if you use it in some form.

-Jon

Great product! Can’t wait to try integrating it into my own projects when i get some spare cycles. Looks slick.

—Ryan Sobol

Dear Jon,
thank you very much for that great code.

I’ve use your Kropper as advanced part of my image upload progress at my daily photo project Dailyfratze.de to get my users pictures to 4:3 in case needed and wanted to.

I use it with rmagick but without attachement_fu, but no problems to integrate it (apart from fitting that stencil with gimp… that gave me a real hard time, i’m no graphic artist in anyway).

Kudos and a nice day from Germany,
Michael.

Michael

Post a Comment

© 2006-2007 Kolossus Interactive | sitemap