matrix-org / matrix-spec

The Matrix protocol specification
Apache License 2.0
194 stars 96 forks source link

Images with captions #242

Open leonerd opened 7 years ago

leonerd commented 7 years ago

It would be useful to be able to put a "caption" field with an image, to somehow be able to atomically post an image with some explaining text with it.

This feature would be especially useful for bridges and third-party protocol integrations, as for example both Slack and Telegram include this feature, so it would be good if we can bidirectionally represent it into and out of Matrix.

leonerd commented 7 years ago

E.g. currently the Slack bridge just posts an incoming commented image from slack by separate m.image and m.text messages: https://github.com/matrix-org/matrix-appservice-slack/commit/158a8e88a7126a83531ca1ccdb1fbdaa07d33626

richvdh commented 7 years ago

matrix-purple has a similar kludge: https://github.com/matrix-org/purple-matrix/blob/master/matrix-room.c#L1193

richvdh commented 7 years ago

messages can now include inline images, so maybe we can use that

auscompgeek commented 4 years ago

See MSCs matrix-org/matrix-spec-proposals#2529 and matrix-org/matrix-spec-proposals#2530.