Tusky icon indicating copy to clipboard operation
Tusky copied to clipboard

Animated GIF support for user avatar and header

Open ghost opened this issue 8 years ago • 7 comments

Would be nice to have, as Mastodon supports it.

ghost avatar Apr 09 '17 12:04 ghost

I've thought about this before, but I've been concerned about how this would affect performance. Also, keeping in mind this issue https://github.com/tootsuite/mastodon/issues/441. If I did do it, I'd like to make sure I do it right.

Notes about implementation:

I know GIF's right now for media attachments are converted to .mp4. I'd expect avatars are the same, but I'm not sure. A VideoView could play them without controls and audio. The trouble would come with recycling ImageViews and VideoViews. RecyclerView is what's used for timelines, and it would be awkward to introduce this kind of heterogeneity, but it might work. You'd also have to handle the high case of like 15 VideoViews on screen, for example. Or quite a lot more if you're dealing with a tablet. Could easily just not animate if there's too many?

Vavassor avatar Apr 09 '17 21:04 Vavassor

Perhaps only the avatar (along with the header) that is displayed on the profile above the bio could be animated for the time being?

Edit: Mastodon has now changed the way animated gifs are displayed, hovering the mouse cursor over an animated gif plays the animation (with the exception of the permalink/single thread view and in the bio area). This looks exactly like what I'm suggesting.

ghost avatar Apr 15 '17 16:04 ghost

How about making this simply optional? Like pinafore.social, which has a toggle for animated gif autoplay.

jemus42 avatar Aug 22 '18 00:08 jemus42

I think it works for avatars now? Can anyone confirm this?

charlag avatar Jan 14 '20 20:01 charlag

It does work for avatars, and is controlled by a setting

Tak avatar Jan 14 '20 20:01 Tak

We should just also animate the headers when the setting is on.

connyduck avatar Jan 14 '20 21:01 connyduck

758X

GilmardOliveira avatar Jun 07 '22 01:06 GilmardOliveira