alphapapa / ement.el

A Matrix client for GNU Emacs
GNU General Public License v3.0
476 stars 44 forks source link

Support animated gifs/webp #160

Open Stebalien opened 1 year ago

Stebalien commented 1 year ago

(optionally, of course)

Putting point on an image and running (image-animate (image--get-image)) will cause it to animate once, so this is clearly possible. Likely slightly annoying and difficult to make performant... but it's something to put on the TODO list.

alphapapa commented 1 year ago

Yeah, I wasn't sure if trying to make animations work in Emacs was a good idea. I wouldn't mind if it were an option, assuming it doesn't break anything.

Not sure if WEBP is even supported in Emacs. Maybe Emacs 29/30?

Stebalien commented 1 year ago

It's supported in emacs 29.

alphapapa commented 1 year ago

I guess it should just work when running on Emacs 29, then, right?

Stebalien commented 1 year ago

Webp, yes. But you have to tell emacs to animate images if you want that (and, IIRC, you have to keep telling it to loop them).

alphapapa commented 1 year ago

Yeah, that part I'll want to make optional. Thanks.