Ruby China
  • Topics
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • Sign Up
  • Sign In
yangtao
@snull
Member
NO. 20146 / 2015-07-25

[email protected]
0 Topics / 4 Replies
0 Followers
0 Following
0 Favorites
No GitHub.
  • Overview
  • Topics
  • Replies
  • Favorites
  • Following
  • Followers
  • 支持中文分词的 sunspot_solr at January 17, 2017

    #7 楼 @2297028416 #5 楼 @zhf 把 start 改成 run

  • 可以用 MiniMagick 和 carrierwave 可以实现填充图片背景色功能吗 at July 27, 2015

    #3 楼 @yesmeck 自己解决了 image.combine_options do |cmd| cmd.thumbnail "#{640}x#{366}>" cmd.background "#FFFFFF" cmd.gravity "center" cmd.extent "#{640}x#{366}" end

  • 可以用 MiniMagick 和 carrierwave 可以实现填充图片背景色功能吗 at July 25, 2015

    #3 楼 @yesmeck image = MiniMagick::Image.open(image_path) crop_params = "#{w}x#{h}+#{x}+#{y}" image.crop(crop_params) image.resize_and_pad '640x366' image.write(image_path)

  • 可以用 MiniMagick 和 carrierwave 可以实现填充图片背景色功能吗 at July 25, 2015

    image = MiniMagick::Image.open(image_path) crop_params = "#{w}x#{h}+#{x}+#{y}" image.crop(crop_params) image.resize_and_pad '640x366' image.write(image_path) 这样写会报错!求指点应该怎么改写!

关于 / RubyConf / Ruby 镜像 / RubyGems 镜像 / 活跃会员 / 组织 / API / 贡献者
由众多爱好者共同维护的 Ruby 中文社区,本站使用 Homeland 构建,并采用 Docker 部署。
服务器由 赞助 CDN 由 赞助
iOS 客户端 / Android 客户端 简体中文 / English