mirror of
https://github.com/go-gitea/gitea
synced 2024-11-16 23:24:25 +00:00
Resize avatars to the same size they are displayed
This commit is contained in:
parent
59a475163f
commit
e5146155a0
@ -194,7 +194,7 @@ func (u *User) UploadAvatar(data []byte) error {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
m := resize.Resize(200, 200, img, resize.NearestNeighbor)
|
m := resize.Resize(234, 234, img, resize.NearestNeighbor)
|
||||||
|
|
||||||
sess := x.NewSession()
|
sess := x.NewSession()
|
||||||
defer sess.Close()
|
defer sess.Close()
|
||||||
|
Loading…
Reference in New Issue
Block a user