WeblateOrg / weblate

Web based localization tool with tight version control integration.
https://weblate.org/
GNU General Public License v3.0
4.61k stars 1.02k forks source link

Enable individual upload of avatar as e.g. `png` or `jpg` #3564

Open rhofer opened 4 years ago

rhofer commented 4 years ago

Besides the gravatar.com integration, it would be great to allow individual upload of a picture to be set as avatar (similar to e.g. github or gitlab user profile settings)

  1. navigate to ../accounts/profile/#profile of your weblate instance
  2. In section Your avatar provide a file dialogue to upload an avatar from your local disk
    • provide and enforce size limits (e.g. pixel size or in kB)
  3. Store uploaded picture in database (not in local file system as e.g. media)

Fallback: in case there is no individual picture uploaded, still use gravatar.com as fall back.

In relation to #2964 this would also help to identify a desired user when mentioning in comment function.

nijel commented 4 years ago

I think it should be stored in the file system same as we do with other things (for example screenshots). I currently don't see any benefits in putting this into database. Weblate will require filesystem for forseable future and in case this is going to change, migrating images to database is pretty easy.

nijel commented 4 years ago

When touching this part, it should be made more flexible:

I think the workflow should be:

rhofer commented 4 years ago

Sounds good to me!