Feature Description
Once an image attachment has more than one type of image available we need to make sure the correct images are rendered:
Scenario 1 - Render WebP by default
- If the requested browser support WebP continue with the flow, otherwise render a JPEG version.
- If the attachment has a WebP version of the image replace any JPEG version with the exact WebP version of the image.
- If no WebP version exists keep serving the JPEG version
Scenario 2 - Render JPEG version
- If the browser does not accepts WebP version render a JPEG version
- if the current attachment does not have an exact WebP version for the requested image deliver the JPEG version
- If the WebP is disabled via a filter keep rendering JPEG by default.
This filter would be placed in the_content so when the article or articles are rendered the delivered content to the users uses the appropriate image format.
This work is a subsequent step for:
Feature Description
Once an image attachment has more than one type of image available we need to make sure the correct images are rendered:
Scenario 1 - Render WebP by default
Scenario 2 - Render JPEG version
This filter would be placed in
the_contentso when the article or articles are rendered the delivered content to the users uses the appropriate image format.This work is a subsequent step for: