mattermost / mattermost

Mattermost is an open source platform for secure collaboration across the entire software development lifecycle..
https://mattermost.com
Other
30.51k stars 7.32k forks source link

Text alignment issue in the older default profile picture #27853

Closed Utsav-Ladani closed 2 months ago

Utsav-Ladani commented 2 months ago

Summary

As part of issue #25298, we fixed the text alignment of default profile pictures. The newly generated default profile pictures no longer have this issue. However, the older default profile pictures still have misaligned text. This affects the visual quality, and there is no way to regenerate these older default profile pictures.

Steps to reproduce

See a user’s default profile image before the fix #25324 was released. For example, check the Mattermost community server.

Operating System

I am using macOS 14 Sonoma Apple Silicon, but this issue is present on any OS.

Mattermost Server Version

Latest version

Expected behavior

Older default profile pictures should have centered text alignment.

Observed behavior

Older default profile pictures have incorrect text alignment.

Log Output

N/A

Additional Information

Screenshot 2024-08-03 at 2 57 32 PM

Possible fixes

  1. Add a migration to regenerate older images.
  2. Provide an option for users to regenerate their profile images, potentially enhancing the image with creative elements.
amyblais commented 2 months ago

Opened https://mattermost.atlassian.net/browse/MM-60039.

marianunez commented 2 months ago

@Utsav-Ladani thanks for reporting this issue. Even though there isn't a explicit way to regenerate the default profile picture, the system does regenerate it after a different image has been uploaded and then removed.

So, a workaround for a user that had the previous misaligned default profile they can:

  1. Go to User Profile Settings > Edit for Profile Picture.
  2. Upload a temporary image and click save.
  3. Reopen the Profile Settings > Profile Picture.
  4. Click the x on the temporary image to remove it.
  5. Click Save and refresh.

A new default profile image will be generated with the correct alignment and should solve this issue.

marianunez commented 2 months ago

Will close this issue as we don't have any migration plans in the near future to update previous default profile images.