[wp-trac] [WordPress Trac] #35725: Add WebP support.
WordPress Trac
noreply at wordpress.org
Thu Apr 1 20:40:10 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):
Actually, as far as I can tell, LibGD does not currently support lossless
WebP images, unless I am missing something the library makes a single call
to save images using the lossy function:
https://github.com/libgd/libgd/blob/1e47a89a65d49a9003d8365da4e26a7c1a32aa51/src/gd_webp.c#L220
This abandoned PR added lossless support:
https://github.com/libgd/libgd/pull/327 - it calls
`WebPEncodeLosslessRGBA` when a lossless quality is specified.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35725#comment:147>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list