avatar 400 ===> 200
This commit is contained in:
parent
6cd160ec9b
commit
189b60a152
|
@ -55,7 +55,8 @@ class AvatarController < ApplicationController
|
||||||
# saved = @avatar.save
|
# saved = @avatar.save
|
||||||
begin
|
begin
|
||||||
f = Magick::ImageList.new(diskfile)
|
f = Magick::ImageList.new(diskfile)
|
||||||
f.resize_to_fill!(400, 400)
|
proportion = (200.0/f[0].columns)
|
||||||
|
f.resize_to_fill!(200,200)
|
||||||
#f.scale!(50,50)
|
#f.scale!(50,50)
|
||||||
f.write(diskfile)
|
f.write(diskfile)
|
||||||
rescue Exception => e
|
rescue Exception => e
|
||||||
|
|
Loading…
Reference in New Issue