From 6cd160ec9bdec7d25a7446e9b35a345c0180fedc Mon Sep 17 00:00:00 2001 From: yanxd Date: Fri, 17 Jan 2014 11:15:56 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=B4=E5=83=8F400*400?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/avatar_controller.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/controllers/avatar_controller.rb b/app/controllers/avatar_controller.rb index f691cafb5..93e2a58bb 100644 --- a/app/controllers/avatar_controller.rb +++ b/app/controllers/avatar_controller.rb @@ -55,8 +55,7 @@ class AvatarController < ApplicationController # saved = @avatar.save begin f = Magick::ImageList.new(diskfile) - proportion = (200.0/f[0].columns) - f.resize_to_fill!(200,200) + f.resize_to_fill!(400, 400) #f.scale!(50,50) f.write(diskfile) rescue Exception => e