AvaloniaUI / Avalonia

Develop Desktop, Embedded, Mobile and WebAssembly apps with C# and XAML. The most popular .NET UI client technology
https://avaloniaui.net
MIT License
25.95k stars 2.25k forks source link

Support for Animated GIF and SVG #2481

Open deinok opened 5 years ago

deinok commented 5 years ago

Hi, Is there any way to render animated GIFs and SVGs?

Gillibald commented 5 years ago

There is https://github.com/jmacato/AvaloniaGif but I do not know if that is finished. SVG will not be supported any time soon. The spec is just too much to implement at the moment. You can try to convert your SVG to XAML and use that.

deinok commented 5 years ago

Any Intention to upstream the Gif support for 0.9.0? ping: @jmacato

jmacato commented 5 years ago

We're still waiting for some issues regarding layout bugs and the current WriteableBitmap not refreshing as efficiently as it could (see #2185 & #2244). About upstreaming that to avalonia however is yet to be determined.

jmacato commented 5 years ago

@deinok though i should say that AvaloniaGif is working, albeit sub-optimally. Do try the demo project on it and see what works for you.

deinok commented 5 years ago

@jmacato It is working pretty well on an embedded device with Linux Framebuffer

grokys commented 5 years ago

Ideally when we bring animated GIF support into Avalonia core, we'd be able to display GIFs using the <Image> control. For this we will need a bit of work in order to allow Image to display animations,

qwksilver commented 2 years ago

If there is any update here, it's presence would be very nice on a project i am part of

maxkatz6 commented 1 year ago

Avalonia.Lottie is supported and in general is a better solution: https://github.com/AvaloniaUI/Avalonia.Labs and https://www.nuget.org/packages/Avalonia.Labs.Lottie/11.0.0-rc1.1.

jmacato commented 1 year ago

There's also my ongoing port of GIF control to composition rendering, it should result in better responsiveness as well: https://github.com/AvaloniaUI/Avalonia.GIF/pull/24/files

arieroos commented 7 months ago

@jmacato it seems you haven't touched that repo in a while. Are you still planning to merge it upstream?