Skip to content

Incorrect metadata on uploaded image #6415

@richvdh

Description

@richvdh

Steps to reproduce

  1. Send a message, containing a portrait photo
  2. Inspect the event content. Observe:
{
  "type": "m.room.message",
  "sender": "@richvdh:sw1v.org",
  "content": {
    "msgtype": "m.image",
    "body": "1000017566.jpg",
    "url": "mxc://sw1v.org/<redacted>",
    "info": {
      "h": 1848,
      "w": 4000,
      "mimetype": "image/jpeg",
      "size": 2370540,
      "thumbnail_info": {
        "h": 666,
        "w": 308,
        "mimetype": "image/jpeg",
        "size": 31384
      },
      "thumbnail_url": "mxc://sw1v.org/<redacted>",
      "xyz.amorgan.blurhash": "KWChkB9sSZ?1M|R~Eas;n,"
    }
  },
  "event_id": "$1773914040221hTyLC:sw1v.org",
  "origin_server_ts": 1773914040682,
  "unsigned": {
    "membership": "join",
    "age": 122
  },
  "room_id": "!<redacted>:sw1v.org"
}

Outcome

The h and w are the wrong way round. This confuses receiving clients.

Your phone model

Samsung S22

Operating system version

Android 16

Application version and app store

EXA nightly 26.01.2 develop (6327641)

Homeserver

synapse

Will you send logs?

Yes

Are you willing to provide a PR?

No

Metadata

Metadata

Assignees

No one assigned

    Labels

    T-DefectSomething isn't working: bugs, crashes, hangs and other reported problems

    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