Skip to content

Image avatars are stretched instead of preserving aspect ratio #883

@jamieforrest

Description

@jamieforrest

Image avatars appear distorted when the source image is not square.

Observed:

  • In the profile side pane, the large circular avatar is visibly stretched.
  • In the main timeline, the same user's smaller avatar is also stretched.
Image

Expected:

  • Avatar images should preserve their original aspect ratio.
Image

Environment:

  • macOS
  • Robrix main branch
  • commit: a3595f2

This suggests the Avatar image renderer is scaling the image independently in X/Y to fit the avatar bounds. Square avatar images do not appear stretched.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions