Skip to content

Image attachments from bots/webhooks render squashed vertically #794

@bl4ckswordsman

Description

@bl4ckswordsman

Describe the bug

Images sent by bots or webhooks via HTML-formatted messages (e.g. <img src="mxc://..." width="200">) render squashed/compressed to a very small height in Sable, while the same message renders correctly in upstream Cinny.

Image

Reproduction

  1. Have a bot send an HTML message with an <img> tag pointing to an MXC URI, e.g.:
    <img src="mxc://your.homeserver/xyz" width="200" alt="image">
  2. Observe the image in Sable - it appears squashed vertically into a thin strip.
  3. Open the same room in Cinny - the image renders at the correct dimensions.

Expected behavior

The image should render at the correct aspect ratio, respecting the width attribute or the image's natural dimensions.

Platform and versions

1. OS: Linux
2. Browser: Vivaldi 7.9.3970.60 (Chromium 146.0.7680.218)
3. Sable version: 1.15.3-dev (6f98bd7)
4. Matrix homeserver: self-hosted

Additional context

Even some html formatting like font color (working in Cinny and Element Web) doesn't render in Sable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions