cinny icon indicating copy to clipboard operation
cinny copied to clipboard

Feat: Animated Media Thumbnails

Open cyrneko opened this issue 1 year ago • 6 comments

Describe the problem

Since roughly 2020, MSC2705 has existed and proposed a way to have animated media thumbnails (for e.g GIFs). These are quite useful as most clients will not display fullsize images in the timeline, especially for avatars where one might want to use an animated avatar.

In Cinny too, animated avatars never play, and there is no full-size view for avatars to speak of.

Describe the solution you'd like

Support for MSC2705, which has been recently merged, would fix this issue.

Alternatives considered

Apart from just living with it, there isn't much of an alternative here.

Additional context

I've tested this on the refactor-navigation-2 branch to make sure it doesn't exist yet on the currently most active branch.

cyrneko avatar May 10 '24 21:05 cyrneko

It's not supported by synapse.

greentore avatar Jul 22 '24 20:07 greentore

It's not supported by synapse.

That does not mean it cannot be supported, especially as Matrix.org uses matrix-media-repo themselves.

Not to mention that it has been merged and it advertises matrix 1.11 support.

cyrneko avatar Jul 25 '24 23:07 cyrneko

i use matrix-media-repo and cinny, and cinny renders the animated thumbnails and avatars appropriately. i'm not sure i understand what part of this is a cinny feature request...

williamkray avatar Aug 05 '24 14:08 williamkray

i use matrix-media-repo and cinny, and cinny renders the animated thumbnails and avatars appropriately. i'm not sure i understand what part of this is a cinny feature request...

Cinny doesn't hit the media endpoints with the required parameter here, never did 🤔

cyrneko avatar Aug 11 '24 20:08 cyrneko

Animated media send to work for me. What endpoint you are taking about? And what it has to do with endpoint if the animated media is working?

kfiven avatar Oct 14 '24 21:10 kfiven

Animated media send to work for me. What endpoint you are taking about? And what it has to do with endpoint if the animated media is working?

MSC2705 defines an explicit way to request animated thumbnails.

Media thumbnails are not the same as the full-size media, as a media thumbnail is supposed to be a lower-resolution or otherwise 'shrunk' version of the media to be displayed when a user does not request the full-resolution image (e.g by clicking on it).

This is apparent in avatars, which are requested at a smaller resolution. The endpoint used for this is as follows:

/_matrix/client/v1/media/thumbnail/example.com/MXC?width=80&height=80&method=crop&allow_redirect=true

The "correct" use for animated thumbnails would be:

/_matrix/client/v1/media/thumbnail/example.com/MXC?width=80&height=80&method=crop&allow_redirect=true&animated=true

even on commit cca8b5f this behavior is replicable for media, both avatars and in the timeline, that is supposed to be animated.

cyrneko avatar Oct 15 '24 03:10 cyrneko