Closed
Description
High-level feature:
- When uploading images to WordPress, the format for the sub-sized images WordPress creates should be WebP when available.
- When serving images in the frontend, use the WebP instead of the JPEG images
Overview
This is an overview of related issues. This may not necessarily be comprehensive, for a full list see all issues related to the "WebP Uploads" module here. When opening a new issue related to this feature, make sure to add the [Module] WebP Uploads
label.
Key enhancements
Required for initial plugin release
- Create WebP module and port the applicable code #4
- When uploading, generate both WebP and jpeg format images by default #142
- Update
the_content
with the correct image format #149
Required for following plugin release and initial core patch
- Expose
source_url
for all additional mime types via REST API #167 - When generating WebPs, ensure full size is generated(
-scaled
for large images) #174 - Allow developers to tweak which image formats should be used #187
- When creating additional mime types use the original image instead of attached image. #204
Required for initial core patch merge
- Restore and backup Image sizes with sources when an image is edited #228
- Decide on order of
webp_uploads_content_image_mimes
filter items #237 - Allow controlling which image format sources in the frontend can be replaced #238
- Select the smaller image size from the list of available sources #186
- Ensure WebP/Image/Optimization plugins can integrate & use existing WebP images #160
- Ensure edited image sources are backed up when restoring the original image #295
- Enhance
webp_uploads_pre_generate_additional_image_source
filter to support returningfilesize
value #333
Exploration
- Image is partially converted to
WebP
#69 - Store previous image size before
WebP
conversion #70 - Investigate email client support for WebP, plugin usage #74
- Store previous image size before
WebP
conversion #96 - Progressive transition into WebP formats #150
Misc. bugs
- Image mime type is not set correctly when a
webp
image is generated. #67 - Ensure post meta reflects image mime type #75
-
*.jpg
is not generated for scaled full size image. #122 - WebP image are not rotated when uploading. #146