gossip icon indicating copy to clipboard operation
gossip copied to clipboard

Animated Gif support

Open dtonon opened this issue 2 years ago • 3 comments

Currently gif are not supported, only the first frame is shown. I'm absolutely not a fan of lazy-animated-memes, but sometime gifs are a quick and useful way to share short/simple animation.

But first, there is a usability problem: by showing only the first frame, the poster's message could be completely misunderstood. Let's think about a GIF that starts with a provocative message, and then explains the meaning. The Gossip user will receive half the information, and this could create many problems.

@bu5hm4nn did you already check on this matter in the past?

dtonon avatar Oct 08 '23 16:10 dtonon

https://github.com/emilk/egui/issues/1857 https://github.com/emilk/egui/discussions/1521 TL;DR it's possible but we need to write some code to cycle through the frames and render them at the right time. I would guess maybe 2-3 days work with testing.

bu5hm4nn avatar Oct 09 '23 23:10 bu5hm4nn

Just in case, support for animated GIFs has been added in https://github.com/emilk/egui/pull/4620.

zdimension avatar Jul 28 '24 21:07 zdimension

@zdimension Thanks for the heads up. @mikedilger I just read the code for this, it only works with egui's image loaders. We could either switch to those (I know you didn't want to use them because we might loose control over network connections) or we implement their code on top of our loader.

bu5hm4nn avatar Aug 07 '24 12:08 bu5hm4nn