1
1
mirror of https://github.com/go-gitea/gitea synced 2025-12-05 04:18:27 +00:00

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
This commit is contained in:
wxiaoguang
2021-11-20 01:10:41 +08:00
committed by GitHub
parent 38347aa16f
commit a8fd76557b
19 changed files with 417 additions and 376 deletions

3
vendor/modules.txt vendored
View File

@@ -507,9 +507,6 @@ github.com/hashicorp/hcl/json/token
github.com/huandu/xstrings
# github.com/imdario/mergo v0.3.12
github.com/imdario/mergo
# github.com/issue9/identicon v1.2.0
## explicit
github.com/issue9/identicon
# github.com/jaytaylor/html2text v0.0.0-20200412013138-3577fbdbcff7
## explicit
github.com/jaytaylor/html2text