how to generate avatar automatically? #7023

Closed
opened 2025-11-02 07:13:44 -06:00 by GiteaMirror · 5 comments
Owner

Originally created by @nkbai on GitHub (Mar 19, 2021).

  • Gitea version (or commit ref): 1.13.4
  • Git version:
  • Operating system: linux

the older version support this feature:
generate avatar for every user from it's name, but when I use the latest version, This feature is missing and can not automatically generate an avatar based on my initials. For example, generate a picture by Bai with three letters.

How Do I get this feature back so I can clearly identify users without having to upload their avatar.

We are a small group of only a few people,

image

Originally created by @nkbai on GitHub (Mar 19, 2021). - Gitea version (or commit ref): 1.13.4 - Git version: - Operating system: linux the older version support this feature: generate avatar for every user from it's name, but when I use the latest version, This feature is missing and can not automatically generate an avatar based on my initials. For example, generate a picture by Bai with three letters. How Do I get this feature back so I can clearly identify users without having to upload their avatar. We are a small group of only a few people, ![image](https://user-images.githubusercontent.com/10471399/111722248-712d4500-889c-11eb-80e0-ed9b76cbefd1.png)
GiteaMirror added the issue/needs-feedback label 2025-11-02 07:13:44 -06:00
Author
Owner

@6543 commented on GitHub (Mar 19, 2021):

this should not happen ...

... can you provide us some log's?
and do new created users have this issue too?

@6543 commented on GitHub (Mar 19, 2021): this should not happen ... ... can you provide us some log's? and do new created users have this issue too?
Author
Owner

@garfeng commented on GitHub (Mar 19, 2021):

I don't known why, but if you edit the app.ini as the following, the feature will be activated:

[picture]
DISABLE_GRAVATAR        = false

# maybe by default https://cn.gravatar.com/
GRAVATAR_SOURCE = https://www.libravatar.org/avatar/

ENABLE_FEDERATED_AVATAR = true

Then gittea will generate avatar automatically.

Maybe the reason is:

There are some web server can generate avatar automatically:

  1. Gavator(https://cn.gravatar.com/) blocked in China
  2. Federated Avatars(https://cdn.libravatar.org/) can be accessed in China
  3. ...

and gitea uses Gavator by default.


默认用的可能是 gavatar ,被墙了,换一个就可以。

@garfeng commented on GitHub (Mar 19, 2021): I don't known why, but if you edit the app.ini as the following, the feature will be activated: ``` ini [picture] DISABLE_GRAVATAR = false # maybe by default https://cn.gravatar.com/ GRAVATAR_SOURCE = https://www.libravatar.org/avatar/ ENABLE_FEDERATED_AVATAR = true ``` Then gittea will generate avatar automatically. Maybe the reason is: There are some web server can generate avatar automatically: 1. Gavator(https://cn.gravatar.com/) **blocked in China** 2. Federated Avatars(https://cdn.libravatar.org/) **can be accessed in China** 3. ... and gitea uses Gavator by default. ----------- 默认用的可能是 gavatar ,被墙了,换一个就可以。
Author
Owner

@lunny commented on GitHub (Mar 19, 2021):

I think this is your network problem. Please check chrome devtools network to confirm that.

@lunny commented on GitHub (Mar 19, 2021): I think this is your network problem. Please check chrome devtools network to confirm that.
Author
Owner

@nkbai commented on GitHub (Mar 29, 2021):

多谢,确实是因为被墙了的原因,但是生成的头像是随机的,我记得早期的版本生成的头像是根据名字来的,比如我的头像可能是一个很大的N

@nkbai commented on GitHub (Mar 29, 2021): 多谢,确实是因为被墙了的原因,但是生成的头像是随机的,我记得早期的版本生成的头像是根据名字来的,比如我的头像可能是一个很大的N
Author
Owner

@lunny commented on GitHub (Mar 31, 2021):

Hm, that feature maybe dropped?

@lunny commented on GitHub (Mar 31, 2021): Hm, that feature maybe dropped?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#7023