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 AVIF not playing #129

Open
siddhatiwari opened this issue Nov 24, 2024 · 4 comments
Open

Animated AVIF not playing #129

siddhatiwari opened this issue Nov 24, 2024 · 4 comments
Assignees
Labels
Enhancement New feature or request Needs: Repro

Comments

@siddhatiwari
Copy link

Describe the bug
Animated AVIFs with transparency are not playing and display incorrectly.

To Reproduce
Steps to reproduce the behavior if possible, or a link to a reproduction repo:
Set a transparent AVIF as the source of a FastImage element

  <FastImage
    style={{ height: "100%", width: "100%" }}
    source={require("@/assets/animated_transparent.avif")}
    resizeMode="cover"
  />

Expected behavior
The AVIF should display correctly with animations and transparency.

Screenshots
unnamed (32)

Dependency versions

  • React Native version: 0.74.2
  • React version: 18.2.0
  • React Native Fast Image version: 8.8.1
Copy link

👋 Welcome to the community!
Thank you for opening your first issue. We appreciate your contribution and will review it as soon as possible.
Feel free to ask questions, share ideas, or provide any additional details! We're here to help. 😄

@princektripathi
Copy link
Contributor

Describe the bug Animated AVIFs with transparency are not playing and display incorrectly.

To Reproduce Steps to reproduce the behavior if possible, or a link to a reproduction repo: Set a transparent AVIF as the source of a FastImage element

  <FastImage
    style={{ height: "100%", width: "100%" }}
    source={require("@/assets/animated_transparent.avif")}
    resizeMode="cover"
  />

Expected behavior The AVIF should display correctly with animations and transparency.

Screenshots unnamed (32)

Dependency versions

  • React Native version: 0.74.2
  • React version: 18.2.0
  • React Native Fast Image version: 8.8.1

@siddhatiwari, we will debug this and get back to you.

@princektripathi
Copy link
Contributor

@siddhatiwari, can you please attach a repro with an animated AVIF image with transparent background?

@princektripathi
Copy link
Contributor

@siddhatiwari, we’ve added support for animated AVIF on iOS! 🎉

Unfortunately, you’ll need to wait for Android support. Glide doesn’t support animated AVIF out of the box, so we’ll need to implement custom support for it.

Thanks for your patience! 🚀

Screenshot 2024-12-02 at 6 00 38 PM

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

No branches or pull requests

2 participants