[wp-trac] [WordPress Trac] #51228: Include support for the AVIF image format
WordPress Trac
noreply at wordpress.org
Fri Jan 12 18:33:49 UTC 2024
#51228: Include support for the AVIF image format
-------------------------------------+-------------------------------------
Reporter: lukefiretoss | Owner: adamsilverstein
Type: enhancement | Status: assigned
Priority: normal | Milestone: Future Release
Component: Media | Version:
Severity: normal | Resolution:
Keywords: has-patch needs-unit- | Focuses: performance,
tests | sustainability
-------------------------------------+-------------------------------------
Comment (by adamsilverstein):
> So when will WordPress support the Avif image format? I hope WordPress
version 6.5 will support it
@phanduynam yes, 6.5 or possibly 6.6, depending on the timing of an Edge
stable release with AVIF support and our beta release - the deadline for
committing new features.
In the meantime, I am updating the PR and we need more testing to make
sure AVIFs work as expected.
I added unit tests to the PR as well as some test reference AVIFs, these
surfaced some compatibility issues with specific file types (transparent
and animated AVIFs) which I addressed in the PR. These tests cover the
same points as the tests for WebP.
I noticed that our `wp_get_avif_info` helper function doesn't detect the
AVIF type (sizes work fine which is the critical thing). I think we can
use the "magic number" approach we use for mime type detection to detect
AVIF files on older PHP versions, but I'm not sure how reliable that is
and if we really need it.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/51228#comment:60>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list