«  我要飞得更高   |   Blog首页   |   收藏 Jave Web Framew... »

2006/03/30

图片魔术(ImageMagick)

ImageMagick 

# in the controller 

class Photo < ApplicationController
  imagemagick_for '/var/lib/photos'
end

# in the view

see the Demo:

And in the view:

Presentation
Presentation
Presentation
Presentation
Presentation


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.

棒极了!

Jouy 发表于 2006-03-30 22:31  阅读(760) 评论( 0) 引用( 0) Ruby on Rails
所有人可见

  • 收藏文章:
  • save at del.icio.us
  • save at digg
  • save at my yahoo
  • save at blinklist
  • save at furl
  • save at simpy
  • save at blogmarks
  • submit at reddit
  • save at spurl
  • save at shadows
  • save at rawsugar
  • save at bloglines

引用

http://www.uuzone.com/app/trackBack.do?type=blog&trackBackID=92061

相关内容
更多..

回复列表每两分钟自动刷新一次,想立即刷新吗?点击这里

您的浏览器可能不支持Frame, 优友地带需要使用Frame才能显示正常页面!