matrix-org / matrix-spec

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

Decribe support for SVG and Lottie formats in image events #9

Open MurzNN opened 2 years ago

MurzNN commented 2 years ago

Suggestion In most of current Matrix clients we can send as image only jpg, gif and webp file formats. But in the Spec it's not described the list of suitable formats for m.image events. So now we are missing support for SVG and Lottie formats in Matrix clients.

This issue is vote to describe list of common image formats, that should be supported in clients, and include SVG and Lottie formats to the list of supported.

MurzNN commented 2 years ago

It's even a common case to place SVG logo (eg company logo) as Space/Room avatar, but Matrix clients don't allow this :(

soloturn commented 2 years ago

please consider and and how to handle telegrams compressed lottie (tgs), as well as the future dotLottie.

soloturn commented 2 years ago

security is a topic, see lottie vs lottie light on airbnb, and some hints for SVG on securitum.

there are approaches to increase security, e.g. WebMTD: Defeating Cross-Site Scripting Attacks Using Moving Target Defense.