[wp-trac] [WordPress Trac] #35725: Add WebP support.
WordPress Trac
noreply at wordpress.org
Tue Mar 30 21:26: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):
> Why does one have quality of 90 and no filter and other 75 with a
filter?
In the 90 instance the user is resizing the image. In the 75, wp is saving
sub-sizes.
My guess is 90 is used because after resizing a save then has to happen,
so you want to avoid double compression artifacts. Note these quality
settings match what is used for jpeg as well (not in the diff but nearby
in the code).
> We could just add these to phpcs.xml.dist file. So
Ah, great suggestion thanks for the tip - I will change that.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35725#comment:137>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list