Transparent color not preserved in user/project avatar (OD-2667)
jmbz opened 4 weeks ago

When an SVG file is uploaded to be used as a project avatar, it is converted to a PNG. The conversion process uses white for the background instead of transparent. If the SVG is a circle, the white background can show a bit even if cropped on the upload page.

image.png

To fix this, the background should be transparent or the SVG should be used as is.

  • Robin Shen commented 4 weeks ago

    This is expected behavior. OneDev crops the avatar into a circle, and transparent background inside the circle looks odd. Make sure to use some non-white background images.

  • Robin Shen changed state to 'Closed' 4 weeks ago
    Previous Value Current Value
    Open
    Closed
  • Robin Shen commented 4 weeks ago

    Turns out that perserving transparent color is better than replacing with white if transparent color exists.

  • Robin Shen changed state to 'Open' 4 weeks ago
    Previous Value Current Value
    Closed
    Open
  • Robin Shen changed title 4 weeks ago
    Previous Value Current Value
    Project avatar SVG conversion
    Preserve transparent color in user/project avatar
  • Robin Shen changed title 4 weeks ago
    Previous Value Current Value
    Preserve transparent color in user/project avatar
    Transparent color not preserved in user/project avatar
  • OneDev commented 4 weeks ago

    State changed as code fixing the issue is committed (61fdb019)

  • OneDev changed state to 'Closed' 4 weeks ago
    Previous Value Current Value
    Open
    Closed
  • OneDev commented 4 weeks ago

    State changed as build OD-7017 (14.0.7) is successful

  • OneDev changed state to 'Released' 4 weeks ago
    Previous Value Current Value
    Closed
    Released
issue 1/1
Type
Bug
Priority
Normal
Assignee
Affected Versions
13.1.5
Labels
No labels
Issue Votes (0)
Watchers (3)
Reference
OD-2667
Please wait...
Connection lost or session expired, reload to recover
Page is in error, reload to recover