Repository navigation
Play animated images in the timeline, decode images at their drawn size - #1133
Merged
kevinaboos merged 2 commits intoOct 8, 2026
Merged
Conversation
Animated GIFs, WebP and APNG images (aka "stickers" in matrix) were blank in the timeline, even though we added support for them in Makepad a few months ago. The issues were that we were asking for non-animated thumbnails (so just the first frame), which is often just blank or empty; also, the imageviewer was stretching them. Now we do the following: * Request animated thumbnails of the original file, or fetch the original file in full if the server only has a non-aniamted thumbnail to give us * Decode timeline images at the size they're drawn at, rather than their full size, which is way more memory efficient (and also more performant) * this also lets us remove the 1MiB size cap * Free a timeline's decoded images when the timeline is closed, and same for the imageviewer * Clicking an image now always opens (and downloads) the original rather than its thumbnail (but still shows the thumbnail at first) * Various makepad improvements to make all of this work, see makepad/makepad#1296 * Also modify our `ruma` fork to support the unstable `is_animated` field on media files, which is an experimental thing that ELement also does
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Animated GIFs, WebP and APNG images (aka "stickers" in matrix) were blank in the timeline, even though we added support for them in Makepad a few months ago. The issues were that we were asking for non-animated thumbnails (so just the first frame), which is often just blank or empty; also, the imageviewer was stretching them.
Now we do the following:
rumafork to support the unstableis_animatedfield on media files, which is an experimental thing that ELement also does