summaryrefslogtreecommitdiffstats
path: root/modules/avatar/avatar.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/avatar/avatar.go')
-rw-r--r--modules/avatar/avatar.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/avatar/avatar.go b/modules/avatar/avatar.go
index bb9c2e953b..5411a90796 100644
--- a/modules/avatar/avatar.go
+++ b/modules/avatar/avatar.go
@@ -10,8 +10,9 @@ import (
"image"
"image/color/palette"
- // Enable PNG support:
- _ "image/png"
+ _ "image/gif" // for processing gif images
+ _ "image/jpeg" // for processing jpeg images
+ _ "image/png" // for processing png images
"code.gitea.io/gitea/modules/setting"
"code.gitea.io/gitea/modules/util"