|
|
|
@ -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
|
|
|
|
|