[wp-trac] [WordPress Trac] #56529: Add minimal JPEG fallback script to address limited lack of WebP support
WordPress Trac
noreply at wordpress.org
Wed Sep 7 21:54:45 UTC 2022
#56529: Add minimal JPEG fallback script to address limited lack of WebP support
-------------------------+--------------------
Reporter: flixos90 | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: 6.1
Component: Media | Version:
Severity: normal | Keywords:
Focuses: |
-------------------------+--------------------
As noted in the original ticket #55443, there is still a very small global
percentage of browser usage (between 1% and 3%) where the browser does not
support WebP. Most of that is comprised of Safari on certain outdated
versions of Mac OS and iOS.
A pull request for this has been already in the works for the previously
envisioned multi MIME type infrastructure (see e.g.
https://core.trac.wordpress.org/ticket/55443#comment:115), and while this
infrastructure has been reverted, most of the code for the fallback script
is still relevant, so the PR can probably be continued and only has to be
adjusted to the new circumstances where every image size has either WebP
or JPEG available.
The new approach here for the fallback needs to be as follows (when WebP
is not supported): Choose the smallest available version of the image that
has at least as large dimensions as the WebP version and has the same
aspect ratio.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/56529>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list