共有 0 个贴子
没有任何数据可供显示
开源项目社区 | 当前位置 : |
|
oss.trustie.net/open_source_projects | 主页 > 开源项目社区 > image-column |
image-column
|
0 | 0 | 12 |
贡献者 | 讨论 | 代码提交 |
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}