Skip to content

Conversation

@McBaumwolle
Copy link

@McBaumwolle McBaumwolle commented Feb 9, 2026

Description
This PR updates the account avatar logic to support both .jpg and .png file extensions. Previously, all avatars were forced to use the .jpg extension, which caused issues when someone uploaded PNGs, especially those with transparency (I tried some for my main email and did not understand why it failed at first, or rather did not show the images in the picker).

Changes:
Dynamic extension: LocalAvatarImageDataSource now detects if the source image is a PNG and saves it with the correct .png extension.

  • Smart cleanup: the delete() function now checks for and removes both .jpg and .png files for the given account. This ensures that, when a user switches from a JPEG avatar to a PNG avatar (or vice versa), the old file is deleted and does not remain orphaned.
  • Tests: updated LocalAvatarImageDataSourceTest to verify PNG support and ensure the clean-up logic works for multiple file types.

Fixes:
#10501

@McBaumwolle
Copy link
Author

Never mind, needs some further adjustments.

@McBaumwolle McBaumwolle closed this Feb 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants