[wp-trac] [WordPress Trac] #35725: Add WebP support.
WordPress Trac
noreply at wordpress.org
Thu Mar 11 19:11:56 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 2nd-opinion needs-testing | Focuses:
has-unit-tests |
-------------------------------------------------+-------------------------
Comment (by marylauc):
Replying to [comment:75 adamsilverstein]:
> @atjn Thanks for the feedback. I was hoping someone would bring this up
so we can discuss in more detail.
>
> > Because WebP-compression is fundamentally different from JPEG, auto-
conversion is very hard without introducing weird artefacts or ending up
with WebP files that are larger than the original JPEG. JPEG also has
support for different image encodings and metadata that would be stripped
when converted to WebP.
>
> Is this true even in the likely common scenario where someone uploads a
very high quality, very large jpg image and we are downsizing to display
the image at medium to large sizes? Are there cases when we can be
confident the WebP images will be smaller and still high quality?
Hi, I'm from the webp team. If you are both resizing and converting to
webp, there is no reason not to use webp. Webp should definitely provide a
benefit over jpeg (smaller size for similar visual quality).
If you are only converting to webp without resizing, there might be some
cases where webp will be worse, such as with a low quality/noisy source
jpeg. However, for most practical use cases, we would still expect webp to
be beneficial.
Regarding metadata, some tools like cwebp strip it by default, but it's of
course possible to copy over exif/xmp/icc if you choose to (using
"-metadata all" in the case of cwebp).
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35725#comment:78>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list