mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-05-25 11:22:16 +00:00
Fix Avatar Resize (resize algo NearestNeighbor -> Bilinear) (#12745)
* Update Vendor github.com/nfnt/resize * switch resize algo NearestNeighbor -> Bilinear
This commit is contained in:
parent
332dbe7393
commit
f7b3e06026
8 changed files with 298 additions and 130 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue