iced-rs / iced

A cross-platform GUI library for Rust, inspired by Elm
https://iced.rs
MIT License
24.11k stars 1.12k forks source link

Gif doesn't animate #1412

Open ic3man5 opened 2 years ago

ic3man5 commented 2 years ago

Is there an existing issue for this?

Is this issue related to iced?

What happened?

I'm attempting to write a simple app to learn rust and iced and I'm running into a road block I'm not sure how to overcome. From the research I've done this looks like it might be a limitation right now of iced but I'm not really sure.

I'm creating a a simple application that searches giphy and displays the gif results for you. I've currently tested this by adding an Image widget through Image::new but it only shows the first frame and doesn't progress.

I'd like to completely learn this toolkit and possibly help document things or improve things but I'm not sure how to move forward here.

I can provide source and example code if needed.

image

What is the expected behavior?

Gifs to animate

Version

0.4

Operative System

Windows

Do you have any log output?

No response

ic3man5 commented 2 years ago

I found this but I'm not sure if its related: https://github.com/iced-rs/iced/issues/31

13r0ck commented 2 years ago

Yes, As stated in the issue you linked

This is a necessary feature to render loading spinners, a blinking text cursor, GIF images, etc.

Iced does not support animated gifs at this time.

ic3man5 commented 2 years ago

Yes, As stated in the issue you linked

This is a necessary feature to render loading spinners, a blinking text cursor, GIF images, etc.

Iced does not support animated gifs at this time.

Is there a way to work around this?

13r0ck commented 2 years ago

Other than making a subscription that swaps out the image, no.

thunderstorm010 commented 1 year ago

I think that this could be implemented with #1647