mirror of
https://github.com/gogs/gogs.git
synced 2026-03-06 12:11:00 +01:00
Resize avatars to the same size they are displayed
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user