|
|
|
@ -55,7 +55,7 @@ class AvatarController < ApplicationController
|
|
|
|
|
# saved = @avatar.save
|
|
|
|
|
begin
|
|
|
|
|
f = Magick::ImageList.new(diskfile)
|
|
|
|
|
width = 300.0;
|
|
|
|
|
width = 300.0
|
|
|
|
|
proportion = (width/f[0].columns)
|
|
|
|
|
height = (f[0].rows*proportion)
|
|
|
|
|
f.resize_to_fill!(width,height)
|
|
|
|
|