Animated Gif support #543

Open
opened 2023-10-09 05:02:35 +13:00 by dtonon · 3 comments
dtonon commented 2023-10-09 05:02:35 +13:00 (Migrated from github.com)

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?

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?
bu5hm4nn commented 2023-10-10 12:00:09 +13:00 (Migrated from github.com)

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.

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.
zdimension commented 2024-07-29 09:45:39 +12:00 (Migrated from github.com)

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

Just in case, support for animated GIFs has been added in https://github.com/emilk/egui/pull/4620.
bu5hm4nn commented 2024-08-08 00:13:31 +12:00 (Migrated from github.com)

@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.

@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.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
nostr/gossip#543
No description provided.