Intro
Kropper is a free, open-source image cropper for Rails apps by Jonathon Wolfe. It was inspired by the image-cropping UI in Apple's iChat and is best suited for cropping of user profile images or other instances where you want cropped images to have a specific aspect ratio. This demo app manipulates images that are stored with the attachment_fu plugin, but it would be easy to modify it to crop images stored in some other fashion.
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.
Try it out—just upload an image to crop:
(supported file types: gif/jpeg/png. max size: 2mb, min size: 100 bytes)