Opened 23 months ago
Last modified 23 months ago
#61983 new defect (bug)
Part of `wp_generate_attachment_metadata` missing `avif` extension
| Reported by: | adamsilverstein | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | Awaiting Review |
| Component: | Media | Version: | 6.5 |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: |
Description
This ticket proposes a fix to wp_generate_attachment_metadata which is missing extension support for AVIF images. The code path in question is only used as a fallback, it would be good to add a test that validates the fix.
Change History (2)
This ticket was mentioned in PR #7291 on WordPress/wordpress-develop by @adamsilverstein.
23 months ago
#1
- Keywords has-patch added
#2
@
23 months ago
Thanks for the report and patch, @adamsilverstein 🙌🏻
Yeah, wpGenerateAttachmentMetadata.php doesn't cover that kind of scenario yet. What are the conditions required to validate the use of the fallback extension? When the attachment is video/audio, then $metadata['image']['data'] isn't set, which skips that path.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Trac ticket: https://core.trac.wordpress.org/ticket/61983