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

Image field does not render avif files #6629

Closed
Vinimaks opened this issue Dec 21, 2024 · 1 comment
Closed

Image field does not render avif files #6629

Vinimaks opened this issue Dec 21, 2024 · 1 comment
Assignees
Labels
bug Verified bug by the Nova team fix incoming A fix is in review
Milestone

Comments

@Vinimaks
Copy link

  • Laravel Version: 11.36.1
  • Nova Version: 5.0.4
  • PHP Version: 8.3.8
  • Database Driver & Version: Mysql 8
  • Operating System and Version: Ubuntu 22.04.1
  • Browser type and version: Google Chrome 112.0.5615.165
  • Reproduction Repository: N/A

Description:

The Image field accepts .avif file format and displays them properly in the Index and Detail views but when they are viewed in the Create or Edit mode, they show as a generic icon. Other image formats like .png show in all views just fine. This issue appears to exist regardless if using public disk or s3.

Basically, it's exactly the same issue as fixed .webp and it is also easily solved by simply adding image/avif to const imageTypes in vendor/laravel/nova/resources/js/composables/useFilePreviews.js

Detailed steps to reproduce the issue on a fresh Nova installation:

  1. Add an Image field to any resource.
  2. Upload a .avif file.
  3. View the generic icon in Create and Edit views.
@crynobone crynobone added the bug Verified bug by the Nova team label Dec 22, 2024
@crynobone crynobone added this to the 5.0.x milestone Dec 22, 2024
@crynobone crynobone self-assigned this Dec 22, 2024
@crynobone crynobone added the fix incoming A fix is in review label Dec 22, 2024
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 28, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Verified bug by the Nova team fix incoming A fix is in review
Projects
None yet
Development

No branches or pull requests

2 participants