Skip to content
This repository has been archived by the owner on Oct 17, 2019. It is now read-only.

Send image dimensions in m.image event #215

Closed
turt2live opened this issue Jan 17, 2018 · 0 comments
Closed

Send image dimensions in m.image event #215

turt2live opened this issue Jan 17, 2018 · 0 comments
Milestone

Comments

@turt2live
Copy link

Currently nheko doesn't send the image dimensions, which can cause other clients (like riot) to jump around as it loads the image. Although this is a bug for the other clients, it shouldn't take much to send the dimensions alongside the image.

For reference, here's an event body that is "good enough" for most clients:

  "content": {
    "body": "FILENAME.jpg",
    "info": {
      "mimetype": "image/jpeg",
      "h": 1080,
      "w": 1920,
      "size": 86412
    },
    "msgtype": "m.image",
    "url": "mxc://matrix.org/some_media_id"
  },
@mujx mujx added this to the v0.5.0 milestone May 2, 2018
@mujx mujx closed this as completed in 6f07ab4 Jul 10, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants