Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Animated images #250

Open
stevesoltys opened this issue Jun 23, 2020 · 4 comments
Open

Animated images #250

stevesoltys opened this issue Jun 23, 2020 · 4 comments
Labels
enhancement New feature or request

Comments

@stevesoltys
Copy link
Contributor

From what I can see, there is no support for displaying animated images (GIFs).

It would be nice to have this, for loading animations and such. If you have any idea on how you'd like this implemented, I can probably help out.

@Alex009 Alex009 added the enhancement New feature or request label Jul 6, 2020
@Alex009
Copy link
Member

Alex009 commented Jul 6, 2020

hi!
you can implement your own image loader, just like here - https://github.com/icerockdev/moko-widgets/tree/develop/widgets-image-network. with usage of any platform libs which support gifs in correct way.
But you should use dev version of moko-widgets to use this feature. latest public version 0.1.0-dev-19 not support it. But dev snapshot - support.
Here described how to use dev snapshots

@stevesoltys
Copy link
Contributor Author

Yeah, I think if we use YYImage it should be very easy to add basic GIF support.

I believe the only dependency is moko-resources supporting GIF images.

@Alex009
Copy link
Member

Alex009 commented Jul 21, 2020

@stevesoltys why you think that moko-resources should have it dependency? it just UI think about how draw image....moko-resources can store files and images and it can be animated gifs, but we should correct render it - it should implemented into widgets side with correct image loading library at platforms

@stevesoltys
Copy link
Contributor Author

@Alex009

Yeah, I think we agree. I'm only saying that moko-resources should support packaging GIF images inside the images resources folder (I believe it only works for JPG and PNG right now).

I agree that the rendering logic should be entirely in moko-widgets.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants