From 65fe0fb22cfb264f0b756065d0c3ce7a17d7e55b Mon Sep 17 00:00:00 2001 From: JakobDev Date: Fri, 21 Apr 2023 19:15:49 +0200 Subject: 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 --- modules/avatar/avatar.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'modules/avatar') 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 -- cgit v1.2.3