summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorwxiaoguang <wxiaoguang@gmail.com>2021-11-20 01:10:41 +0800
committerGitHub <noreply@github.com>2021-11-20 01:10:41 +0800
commita8fd76557b9c878d5765382c02ee15202d1857f9 (patch)
treea3863134791b2cb70eae3a48dcb7013d9285d891 /build
parent38347aa16f7cfb32bb984ade4518bd311d0aff12 (diff)
downloadgitea-a8fd76557b9c878d5765382c02ee15202d1857f9.tar.gz
gitea-a8fd76557b9c878d5765382c02ee15202d1857f9.zip
Better builtin avatar generator (#17707)
This PR fixes the builtin avatar generator. 1. The random background color makes some images very dirty. So now we only use white background for avatars. 2. We use left-right mirror avatars to satisfy #14799 3. Fix a small padding error in the algorithm
Diffstat (limited to 'build')
-rw-r--r--build/codeformat/formatimports_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/build/codeformat/formatimports_test.go b/build/codeformat/formatimports_test.go
index d308353bda..3db90cad7b 100644
--- a/build/codeformat/formatimports_test.go
+++ b/build/codeformat/formatimports_test.go
@@ -50,7 +50,7 @@ import (
"bytes"
"fmt"
"image"
- "image/color/palette"
+ "image/color"
_ "image/gif" // for processing gif images
_ "image/jpeg" // for processing jpeg images
@@ -76,7 +76,7 @@ import (
"bytes"
"fmt"
"image"
- "image/color/palette"
+ "image/color"
_ "image/gif" // for processing gif images
_ "image/jpeg" // for processing jpeg images