« 我要飞得更高 | Blog首页 | 收藏 Jave Web Framew... »
2006/03/30
图片魔术(ImageMagick)
# in the controller
class Photo < ApplicationController
imagemagick_for '/var/lib/photos'
end# in the view
see the Demo:
And in the view:
Installation with gem:
The easiest way to install this by downloading and installing the gem.
Download the gem and install it. Then, to load the gem, add the following line to your environment.rb:
require_gem 'actionpack-imagemagick'
You can now use the imagemagick_for and imagemagick_tag methods.
- Version 0.4: actionpack-imagemagick-0.4.gem [2005-09-17]
- Version 0.3: actionpack-imagemagick-0.3.gem [2005-09-15]
- Version 0.2: actionpack-imagemagick-0.2.gem [2005-09-14]
- Version 0.1: actionpack-imagemagick-0.1.gem [2005-09-13]
棒极了!
Jouy
发表于
2006-03-30 22:31
阅读(760)
评论(
0)
引用(
0)
Ruby on Rails
所有人可见
相关内容
回复列表每两分钟自动刷新一次,想立即刷新吗?点击这里












