[BUG] user background color calculation #1390

Closed
opened 2026-02-05 01:37:50 +03:00 by OVERLORD · 0 comments
Owner

Originally created by @waclaw66 on GitHub (Oct 2, 2023).

The bug

User background color (avatar placeholder) is currently calculated on web and random on mobile within list of album users.
That should be consolidated to calculate predictable colors (e.g. by email hash or UUID).
On web web there is a palette of five colors, that should be extended.
On mobile there is a palette of eleven colors, however randomly assigned to user avatar each time the album is rendered.

The OS that Immich Server is running on

Fedora 38

Version of Immich Server

v1.79.1

Version of Immich Mobile App

v1.79.0

Platform with the issue

  • Server
  • Web
  • Mobile

Your docker-compose.yml content

not relevant

Your .env content

not relevant

Reproduction steps

not relevant

Additional information

No response

Originally created by @waclaw66 on GitHub (Oct 2, 2023). ### The bug User background color (avatar placeholder) is currently calculated on web and random on mobile within list of album users. That should be consolidated to calculate predictable colors (e.g. by email hash or UUID). [On web](https://github.com/immich-app/immich/blob/8234234c48a1baec9c39286c3f73e2107cb10c16/web/src/lib/components/shared-components/user-avatar.svelte#L19) web there is a palette of five colors, that should be extended. [On mobile](https://github.com/immich-app/immich/blob/8234234c48a1baec9c39286c3f73e2107cb10c16/mobile/lib/shared/ui/user_circle_avatar.dart#L26) there is a palette of eleven colors, however randomly assigned to user avatar each time the album is rendered. ### The OS that Immich Server is running on Fedora 38 ### Version of Immich Server v1.79.1 ### Version of Immich Mobile App v1.79.0 ### Platform with the issue - [ ] Server - [X] Web - [X] Mobile ### Your docker-compose.yml content ```YAML not relevant ``` ### Your .env content ```Shell not relevant ``` ### Reproduction steps ```bash not relevant ``` ### Additional information _No response_
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: immich-app/immich#1390