diff options
author | JakobDev <jakobdev@gmx.de> | 2023-04-21 19:15:49 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-21 19:15:49 +0200 |
commit | 65fe0fb22cfb264f0b756065d0c3ce7a17d7e55b (patch) | |
tree | 82e4c8f99fa20be600709e1b01960533697d1862 /modules/avatar | |
parent | Show commit history for closed/merged PRs (#24238) (diff) | |
download | forgejo-65fe0fb22cfb264f0b756065d0c3ce7a17d7e55b.tar.xz forgejo-65fe0fb22cfb264f0b756065d0c3ce7a17d7e55b.zip |
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>
Diffstat (limited to 'modules/avatar')
-rw-r--r-- | modules/avatar/avatar.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/avatar/avatar.go b/modules/avatar/avatar.go index 9ee926b059..c166f14404 100644 --- a/modules/avatar/avatar.go +++ b/modules/avatar/avatar.go @@ -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 |