1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-11-22 08:42:32 -05:00

Resize avatars to the same size they are displayed

This commit is contained in:
James Anderson 2015-08-10 10:43:14 -05:00
parent 59a475163f
commit e5146155a0

View file

@ -194,7 +194,7 @@ func (u *User) UploadAvatar(data []byte) error {
if err != nil {
return err
}
m := resize.Resize(200, 200, img, resize.NearestNeighbor)
m := resize.Resize(234, 234, img, resize.NearestNeighbor)
sess := x.NewSession()
defer sess.Close()