summaryrefslogtreecommitdiffstats
path: root/modules/avatar
diff options
context:
space:
mode:
author6543 <6543@obermui.de>2020-09-06 21:53:33 +0200
committerGitHub <noreply@github.com>2020-09-06 20:53:33 +0100
commitf7b3e0602603fda5d8a9b8eb65e0975af7cbe3bc (patch)
tree51e69fc451b94a783590f9349cd2f0325e6231ee /modules/avatar
parent332dbe73935ba960d8769bfc20b8d275922e4137 (diff)
downloadgitea-f7b3e0602603fda5d8a9b8eb65e0975af7cbe3bc.tar.gz
gitea-f7b3e0602603fda5d8a9b8eb65e0975af7cbe3bc.zip
Fix Avatar Resize (resize algo NearestNeighbor -> Bilinear) (#12745)
* Update Vendor github.com/nfnt/resize * switch resize algo NearestNeighbor -> Bilinear
Diffstat (limited to 'modules/avatar')
-rw-r--r--modules/avatar/avatar.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/avatar/avatar.go b/modules/avatar/avatar.go
index cf3da6df5e..f4c0655fa9 100644
--- a/modules/avatar/avatar.go
+++ b/modules/avatar/avatar.go
@@ -89,6 +89,6 @@ func Prepare(data []byte) (*image.Image, error) {
}
}
- img = resize.Resize(AvatarSize, AvatarSize, img, resize.NearestNeighbor)
+ img = resize.Resize(AvatarSize, AvatarSize, img, resize.Bilinear)
return &img, nil
}