diff --git a/app/controllers/avatar_controller.rb b/app/controllers/avatar_controller.rb index 7497e457..90d5b083 100644 --- a/app/controllers/avatar_controller.rb +++ b/app/controllers/avatar_controller.rb @@ -54,10 +54,12 @@ class AvatarController < ApplicationController # @avatar.image_file = params[:filename].presence || Redmine::Utils.random_hex(16) # saved = @avatar.save begin - f= Magick::ImageList.new(diskfile) - f.scale!(50,50) - f.write(diskfile) - rescue + f = Magick::ImageList.new(diskfile) + f.scale!(100,100) + #f.scale!(50,50) + f.write(diskfile) + rescue Exception => e + logger.error "[avatar] Error : avatar_cntroller#upload ===> #{e}" end