-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
[Bug] Animated GIF files do not play on iOS/macOS #866
Comments
verified with VS 17.2.0 Preview 2.0 [32224.339.main] in Android 12, windows and IOS 15.2: |
This is still unresolved in RC3? |
Let me have a look at this... It should be working on android at least because we don't do anything and hand it off to glide. |
In windows I have noticed that it does not work either |
Looking at this now. I got ideas as to where.... The first issue is that we convert gif to png :) Try adding this: <MauiImage Update="Resources\Images\*.gif" Resize="False" /> or whatever the path to the gif is. Basically set Resize=false to get it to work. I am seeing windows play gif here when I do that. |
Now if it works, thanks, is it the correct way to do it or do we have to wait for another RC/GA to solve this problem? |
This is the correct way, but I will also make this the default so you don't have to do it. There are a few properties on MauiImage that can control how it is resized and if at all. |
on macOS desktop it doesn't work either |
I have checked gif image in .Net Maui RC3. With below work around, gif working fine with WinUI. But still issue reproducing in Android. |
Has this been fixed yet for IOS ? running this on .NET 8 and still can't render GIF's |
@ledwardsfoodzee Nope still haven't fixed it on IOS but works well with Android |
I've had some luck using WebView to display GIFs on iOS and Android, I am working on a sample, if anyone needs something sooner let me know. Basically I build the HTML content on the fly based on the filename of the GIF file. In order to get it to work I needed to set the build action for the gif files to MauiAsset instead of MauiImage, if you do this, then you can load them in the WebView just by specifying the filename. |
I’d love a sample if you have one? |
Hi @ledwards26 |
Here is my sample of using the WebView on iOS to load the GIF file. https://github.com/billreiss/MauiGifWebView |
Hi @mattleibow this is a feature we'd love to see. Just curious what the latest thoughts are within the team regarding the two PRs? |
Description
The iOS platform does not yet have the logic to load animated images correctly. Right now it only gets the first frame.
Steps to Reproduce
Expected Behavior
Animation plays.
Actual Behavior
Only the first frame shows.
Workaround
#866 (comment)
The text was updated successfully, but these errors were encountered: