iced icon indicating copy to clipboard operation
iced copied to clipboard

Gif doesn't animate

Open ic3man5 opened this issue 1 year ago • 4 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues.

Is this issue related to iced?

  • [X] My hardware is compatible and my graphics drivers are up-to-date.

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 avatar Aug 16 '22 01:08 ic3man5

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

ic3man5 avatar Aug 16 '22 01:08 ic3man5

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.

13r0ck avatar Aug 16 '22 02:08 13r0ck

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?

ic3man5 avatar Aug 16 '22 04:08 ic3man5

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

13r0ck avatar Aug 16 '22 18:08 13r0ck