Transparent project avatar (OD-1290)
Jerome St-Louis opened 3 years ago

When selecting a transparent project avatar, even if picking a PNG with transparency, it ends up as a JPEG with a white background in the side bar that looks out of place on the dark theme. I tried with both 128x128 and 256x256 PNGs.

The Server icon for this project however looks fine with transparency and links to a PNG ( https://code.onedev.io/avatars/project.png ). Is it because it is hardcoded?

The top-left corner branding logo works fine with transparency.

Thank you!

  • Robin Shen changed state to 'Closed' 3 years ago
    Previous Value Current Value
    Open
    Closed
  • Robin Shen commented 3 years ago

    Project/user icons are not displayed as transparent, but rendered as a round icon (there is a bug not rendering the project icon as round icon). This has better visual effect than transparent icon on different backgrounds (currently black and white) actually.

  • Davide Beatrici commented 2 months ago

    @robin There is actually another inconsistency: the default project avatar is 256x256, but uploaded avatars are resized to 240x240.

    I believe PNG avatars should be supported, because right now the quality loss is significant:

    openmandriva_packages_256.png 9.jpg

    It would be perfect if support for SVG (vectorial) images can be added, because they're going to be rendered at the right resolution by the browser and there are less bytes to store/transport.

  • Robin Shen commented 2 months ago

    Default avatar will be changed to 240x240 in next patch release for consistency.

  • Robin Shen commented 2 months ago

    Created a separate improvement request (OD-2594) to save uploaded avatar as png

issue 1/1
Type
Improvement
Priority
Normal
Assignee
Issue Votes (0)
Watchers (5)
Reference
OD-1290
Please wait...
Connection lost or session expired, reload to recover
Page is in error, reload to recover