[wp-trac] [WordPress Trac] #51228: Include support for the AVIF image format
WordPress Trac
noreply at wordpress.org
Fri Feb 2 17:51:13 UTC 2024
#51228: Include support for the AVIF image format
-------------------------------------+-------------------------------------
Reporter: lukefiretoss | Owner: adamsilverstein
Type: enhancement | Status: closed
Priority: normal | Milestone: 6.5
Component: Media | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch has-unit- | Focuses: performance,
tests commit has-testing-info | sustainability
needs-dev-note |
-------------------------------------+-------------------------------------
Comment (by adamsilverstein):
> Not a blocker, but I wonder if src/wp-includes/class-avif-info.php
should be conditionally loaded form wp-includes/compact.php since it is
about compatibility for PHP versions below 8.2
Missed this before commit, but I don't think so because even PHP 8.2 or
8.3 *can* lack AVIF support (my own local MAMP copies of 8.2/3 don't
support it for example). I believe there is a flag added during (Apache?)
build to enable support. So this is more of a capability check, we fall
back to the helper when PHP doesn't return sizes (and to our mime
detection when it doesn't recognize the file).
--
Ticket URL: <https://core.trac.wordpress.org/ticket/51228#comment:77>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list