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

[SDK 51] expo-image cannot display AVIFs anymore: "Failed to decode image: No codec available" #28603

Closed
RRaideRR opened this issue May 3, 2024 · 1 comment · Fixed by #28608
Labels
needs review Issue is ready to be reviewed by a maintainer

Comments

@RRaideRR
Copy link
Contributor

RRaideRR commented May 3, 2024

Minimal reproducible example

https://github.com/RRaideRR/expo-sdk-51

What platform(s) does this occur on?

iOS

Did you reproduce this issue in a development build?

Yes

Summary

When I try to use expo-image like this:

<Image
  source={require('@/assets/test.avif')}
  style={styles.reactLogo}
  onError={(e) => {
    console.log(e)
  }}
/>

onError reports "Failed to decode image: No codec available". It was possible with SDK50.

Environment

expo-env-info 1.2.0 environment info:
System:
OS: macOS 14.4.1
Shell: 5.9 - /bin/zsh
Binaries:
Node: 18.20.2 - ~/.nvm/versions/node/v18.20.2/bin/node
Yarn: 1.22.19 - ~/.yarn/bin/yarn
npm: 10.5.0 - ~/.nvm/versions/node/v18.20.2/bin/npm
Watchman: 2024.04.29.00 - /opt/homebrew/bin/watchman
Managers:
CocoaPods: 1.15.2 - /opt/homebrew/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 23.4, iOS 17.4, macOS 14.4, tvOS 17.4, visionOS 1.1, watchOS 10.4
IDEs:
Android Studio: 2022.3 AI-223.8836.35.2231.10406996
Xcode: 15.3/15E204a - /usr/bin/xcodebuild
npmPackages:
expo: ~51.0.0-preview.11 => 51.0.0-preview.12
expo-router: ~3.5.7 => 3.5.8
react: 18.2.0 => 18.2.0
react-dom: 18.2.0 => 18.2.0
react-native: 0.74.1 => 0.74.1
react-native-web: ~0.19.10 => 0.19.11
Expo Workflow: managed

Expo Doctor Diagnostics

✔ Check Expo config for common issues
✔ Check package.json for common issues
✔ Check native tooling versions
✔ Check dependencies for packages that should not be installed directly
✔ Check for common project setup issues
✔ Check for issues with metro config
✔ Check npm/ yarn versions
✔ Check Expo config (app.json/ app.config.js) schema
✔ Check that packages match versions required by installed Expo SDK
✔ Check for legacy global CLI installed locally
✔ Check that native modules do not use incompatible support packages
✔ Check that native modules use compatible support package versions for installed Expo SDK

Didn't find any issues with the project!

@RRaideRR RRaideRR added the needs validation Issue needs to be validated label May 3, 2024
@expo-bot expo-bot added needs review Issue is ready to be reviewed by a maintainer and removed needs validation Issue needs to be validated labels May 3, 2024
@RRaideRR RRaideRR changed the title [SDK 51] expo-image cannot display (remote) images anymore: "Failed to decode image: No codec available" [SDK 51] expo-image cannot display AVIFs anymore: "Failed to decode image: No codec available" May 3, 2024
@RRaideRR
Copy link
Contributor Author

RRaideRR commented May 4, 2024

I can confirm: it works. Thanks for your fast fix @alanjhughes and @tsapeta for your fast review :).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs review Issue is ready to be reviewed by a maintainer
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants