Non-square avatars should be letterboxed #4419

Closed
opened 2025-11-02 05:50:13 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @silverwind on GitHub (Nov 29, 2019).

When a non-square avatar like

is uploaded, gitea forces it into a square with cut-off sides. Such avatars should instead be letterboxed with a transparent background for the added areas.

https://try.gitea.io/logotest

Originally created by @silverwind on GitHub (Nov 29, 2019). When a non-square avatar like ![](https://git-scm.com/images/logos/1color-orange-lightbg@2x.png) is uploaded, gitea forces it into a square with cut-off sides. Such avatars should instead be letterboxed with a transparent background for the added areas. <img width="383" src="https://user-images.githubusercontent.com/115237/69855026-da91da80-128a-11ea-97f9-023e720db957.png"> https://try.gitea.io/logotest
GiteaMirror added the issue/confirmedtopic/ui labels 2025-11-02 05:50:13 -06:00
Author
Owner

@stale[bot] commented on GitHub (Jan 31, 2020):

This issue has been automatically marked as stale because it has not had recent activity. I am here to help clear issues left open even if solved or waiting for more insight. This issue will be closed if no further activity occurs during the next 2 weeks. If the issue is still valid just add a comment to keep it alive. Thank you for your contributions.

@stale[bot] commented on GitHub (Jan 31, 2020): This issue has been automatically marked as stale because it has not had recent activity. I am here to help clear issues left open even if solved or waiting for more insight. This issue will be closed if no further activity occurs during the next 2 weeks. If the issue is still valid just add a comment to keep it alive. Thank you for your contributions.
Author
Owner

@wxiaoguang commented on GitHub (Apr 23, 2025):

IIRC we already have object-fit: contain; for most cases?

And users could crop the uploaded avatar.

@wxiaoguang commented on GitHub (Apr 23, 2025): IIRC we already have `object-fit: contain;` for most cases? And users could crop the uploaded avatar.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#4419