Fix Avatar Resize (resize algo NearestNeighbor -> Bilinear) (#12745)

* Update Vendor github.com/nfnt/resize

* switch resize algo NearestNeighbor -> Bilinear
This commit is contained in:
6543 2020-09-06 21:53:33 +02:00 committed by GitHub
parent 332dbe7393
commit f7b3e06026
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 298 additions and 130 deletions

View file

@ -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
}