[wp-trac] [WordPress Trac] #51228: Include support for the AVIF image format
WordPress Trac
noreply at wordpress.org
Thu Jun 15 20:57:42 UTC 2023
#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 | Focuses:
--------------------------+------------------------------
Comment (by adamsilverstein):
> MS Edge was the only current browser without AVIF support. That’s
changed last month and Edge 124 (Canary) now supports AVIF, which means
it’ll shortly make its way into main.
I read this as well although I haven't been able to actually test this
version of Canary. And of course, support will need to be in stable to be
considered for core.
I have prepped a [https://github.com/WordPress/wordpress-develop/pull/4612
POC PR] to add AVIF support to the media library - this is ready for
testing, but certain things may not work as expected. **Please test and
report results back here!
A few other caveats:
- the magic numbers file type detection may be incomplete (I only tested a
handful of images)
- unlike the webp implementation, the code can't detect the AVIF
compression type - meaning we can't treat AVIF lossless files explicitly
as lossless when processing uploaded AVIFs.
> what about adding media library support for AVIF when ImageMagick is
available in the hosting environment?
Right, AVIF support in the media library remains dependent on support in
the underlying media library (or libraries) hooked to PHP. Otherwise you
will get an error when trying to upload AVIF files. If you have a
supporting environment, the PR linked above should let AVIF images work in
the media library.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/51228#comment:33>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list