mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-05-21 17:24:10 +00:00
Allow webp
images as avatars (#24248)
Users can now upload `webp` images. Browsers supporting webp images then display this as the avatar of this user (every major browser except IE). --------- Co-authored-by: silverwind <me@silverwind.io>
This commit is contained in:
parent
13d1d2764c
commit
65fe0fb22c
4 changed files with 17 additions and 3 deletions
|
@ -18,6 +18,8 @@ import (
|
|||
|
||||
"github.com/nfnt/resize"
|
||||
"github.com/oliamb/cutter"
|
||||
|
||||
_ "golang.org/x/image/webp" // for processing webp images
|
||||
)
|
||||
|
||||
// AvatarSize returns avatar's size
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue