Gitea: Automatically generate avatars based on initials

Created on 20 Mar 2019  路  4Comments  路  Source: go-gitea/gitea

From the discussion on discourd, it would be nice if there was a way to let Gitea generate avatars for profiles based on the label like this one:
image

Possible ways to solve this:

https://stackoverflow.com/questions/38299930/how-to-add-a-simple-text-label-to-an-image-in-go
https://github.com/holys/initials-avatar

cc @mrsdizzie

kinproposal kinui

Most helpful comment

If we are thinking of adding new options to create different avatars I've actually ported a few avatar generation libs to golang that could also be used as well (perhaps in config there would be a setting to choose from a list of libraries for default avatars):

  • src.techknowlogick.com/monster-id
  • src.techknowlogick.com/wavatars
  • src.techknowlogick.com/retricon
  • src.techknowlogick.com/mysteryperson-id

All 4 comments

If we are thinking of adding new options to create different avatars I've actually ported a few avatar generation libs to golang that could also be used as well (perhaps in config there would be a setting to choose from a list of libraries for default avatars):

  • src.techknowlogick.com/monster-id
  • src.techknowlogick.com/wavatars
  • src.techknowlogick.com/retricon
  • src.techknowlogick.com/mysteryperson-id

An initials based one would be a good/better default for now if you have a preferred existing library to use. I think adding a more solid default first and then focus on providing alternative options would be good and happy to help with that if necessary

@mrsdizzie yes, but maybe it's a good idea to implement it in a way so we can extend it easily afterwards.

As a user, that does happen to prefer the current behaviour, this definitely needs to be configurable. I can definitely see why one would prefer avatars based on initials though.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jonasfranz picture jonasfranz  路  3Comments

jorise7 picture jorise7  路  3Comments

lunny picture lunny  路  3Comments

mirhec picture mirhec  路  3Comments

kifirkin picture kifirkin  路  3Comments