matrix-org / matrix.org

matrix.org public website
Other
428 stars 351 forks source link

The animated Element Call demo animation does not repeat #1856

Open anoadragon453 opened 1 year ago

anoadragon453 commented 1 year ago

This causes the animation to play while I'm elsewhere on the website - and by the time I get to it, the animation has already finished. I didn't realise it was animated until I refreshed the page.

This is the image: https://matrix.org/element-call.webp

Apparently one needs to specify when encoding the file that it should loop indefinitely. Annoyingly, it appears that ffmpeg (and thus a bunch of software that relies on it) doesn't actually support animated webp images: https://trac.ffmpeg.org/ticket/4907

So my 20m attempt to make a PR for this did not go very well. Have you considered another format, such as AVIF or APNG? :)

deepbluev7 commented 6 months ago

Alternatively, if nobody will ever see the animation anyway, it could just be replaced with a static image, which would shrink the page size significantly since that one image is 20 times bigger than the rest of the page or so.