[wp-trac] [WordPress Trac] #35725: Add WebP support.
WordPress Trac
noreply at wordpress.org
Fri Mar 19 14:35:52 UTC 2021
#35725: Add WebP support.
-------------------------------------------------+-------------------------
Reporter: markoheijnen | Owner:
| adamsilverstein
Type: enhancement | Status: assigned
Priority: normal | Milestone: 5.8
Component: Media | Version: 3.5
Severity: normal | Resolution:
Keywords: has-patch needs-testing has-unit- | Focuses:
tests needs-dev-note dev-feedback |
-------------------------------------------------+-------------------------
Comment (by adamsilverstein):
@marylauc thank you for your feedback!
> The recommended way to test for webp support is to use the "accept"
request header.
Good to know this is a reliable approach. I was mainly considering the
client side solution because page level caching is commonly used in
WordPress, so all users get served the same (cached) page. Client based
solutions would still work in these cases, server side would not.
>Both imagemagick and GD use the libwebp encoder, so they should give very
similar results. At most they might be using slightly different versions
of the library or use different default settings.
Good to know!
One follow up question on Imagick vs LibGD: When researching animated
image support (eg. animated gifs/pngs -> WebP), I found this ticket
indicating webp.animated format is only supported in Imagick, not in GD -
https://github.com/libgd/libgd/issues/648. Any feedback on this or how to
detect library animated support?
> The default quality setting (75) is the value we usually recommend for
webp, but testing on a dataset and choosing a quality value that gives the
DSSIM you want sounds like a great idea.
Thanks for all the testing details. This will help us find the best values
to match what we have in WordPress already although I don't want to redo
testing others have already completed. I found this existing research -
https://developers.google.com/speed/webp/docs/webp_study - are you aware
of any others?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35725#comment:120>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list