ImageColumnThis is ruby on rails' plugin to manipulate image file for ActiveRecord.
It crops, rounds and saves the posted image file to any sizes.
Installscript/plugin install http://image-column.googlecode.com/svn/trunk/image_columnRequiredImageMagick and RMagick.
How to use ImageColumn?Describe "image_column" with attribute name in model class.
image_column :imgSave in some sizes image_column :img, crop=>{:default=>"20x30", :mini=>"16"}Show imageYou can get the path from attribute name and crop types.
image_tag model.img.miniRound image image_column :img, {:crop=>{:default=>"20"}, :round=>5}
30 Day Summary Apr 22 2013 — May 22 2013
|
12 Month Summary May 22 2012 — May 22 2013
|
Copyright
©
2013
Black Duck Software, Inc.
and its contributors, Some Rights Reserved. Unless otherwise marked, this work is licensed under a
Creative Commons Attribution 3.0 Unported License
. Ohloh
®
and the Ohloh logo are trademarks of
Black Duck Software, Inc.
in the United States and/or other jurisdictions. All other trademarks are the property of their respective holders.