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

Issues displaying gif images via ImageWidget and/or backgroundDrawable (DrawableRef) #682

Open
Ferryry opened this issue Apr 3, 2024 · 1 comment

Comments

@Ferryry
Copy link

Ferryry commented Apr 3, 2024

I am facing an issue that dlangui is unable to load and display gif images. It happens either for ImageWidget or backgroundDrawable.

Example Code:

ImageWidget image = cast(ImageWidget) window.mainWidget.childById("gifimage");
image.drawable = drawableCache.get("gifimage");

Indeed, if I use another image with the file extension *.jpg it works but not if I am using *.gif.
The background of its object remains blank.

@GrimMaple
Copy link
Collaborator

GIF isn't actually supported. And it doesn't seem to have been ever supported.

Supporting static GIF should be no-issue. However, supporting animating GIFs will be a pain to some extent.
I wonder if dlangui should throw on unsupported files

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants