Ruby FlexImage Plugin Now Especially Effective
Posted by Daniel Butler Thu, 26 Oct 2006 20:08:00 GMT
Alex Wayne has updated his FlexImage plugin for Ruby on Rails, and it now allows for all sorts of special effects such as translucent overlays, drop shadows, and borders, in addition to its existing image processing capabilities. The plugin is described as:
“FlexImage is a plugin that allows you to put image data in your database And retrieve at any size, qulaity or cropping you like. Combine this with page caching and you have a fast and easy way to manage large numbers of uploaded images that are always just the right size for your needs.”
As an example, an image can be resized with an added drop shadow with the following snippet:
flex_image :action => 'show',
:class => MyImage,
:size => 200,
:crop => true,
:shadow => trueThanks, Alex!
Alex’s Blog Posting
FlexImage API Documentation
FlexImage at the Ruby Plugins Directory


I appreciate the kind words. I hope it makes all the image galleries out there just that much prettier. If you do something interesting with it, be sure to drop my blog and post a link!
-Alex