Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blurhashes #111

Open
kiliankoe opened this issue May 7, 2020 · 2 comments
Open

Blurhashes #111

kiliankoe opened this issue May 7, 2020 · 2 comments
Labels
enhancement New feature or request

Comments

@kiliankoe
Copy link
Member

See https://blurha.sh

Supported by recent Nheko, here's an example event.

{
  "content": {
    "body": "clipboard(1).png",
    "info": {
      "h": 88,
      "mimetype": "image/png",
      "size": 49644,
      "w": 989,
      "xyz.amorgan.blurhash": "LyN^e:M|xuRjM{WAjsWB~qofRjof"
    },
    "msgtype": "m.image",
    "url": "mxc://neko.dev/DdbZYuZVfojsNyTRQLcYhfBG"
  },
  "origin_server_ts": 1588842151902,
  "sender": "@deepbluev7:neko.dev",
  "type": "m.room.message",
  "unsigned": {
    "age": 851
  },
  "event_id": "$koLgeRQUowo6gNwM23orig3isNlUNLYJU73gUpw8qm4",
  "room_id": "!xYvNcQPhnkrdUmYczI:matrix.org"
}
@kiliankoe kiliankoe added the enhancement New feature or request label May 7, 2020
@kiliankoe
Copy link
Member Author

Sending blurhashes appears to be a bit more involved than I initially thought since the matrix-ios-sdk apparently exposes no option to customize image events. This would also have to be figured out for #112 and would ideally involve adding an optional info dictionary argument to MXRoom.sendImage() in the matrix-ios-sdk itself.

@kiliankoe
Copy link
Member Author

See matrix-org/matrix-ios-sdk#847

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant