-
Notifications
You must be signed in to change notification settings - Fork 130
Closed
Labels
[Plugin] Modern Image FormatsIssues for the Modern Image Formats plugin (formerly WebP Uploads)Issues for the Modern Image Formats plugin (formerly WebP Uploads)[Type] EnhancementA suggestion for improvement of an existing featureA suggestion for improvement of an existing feature
Milestone
Description
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:
Metadata
Metadata
Assignees
Labels
[Plugin] Modern Image FormatsIssues for the Modern Image Formats plugin (formerly WebP Uploads)Issues for the Modern Image Formats plugin (formerly WebP Uploads)[Type] EnhancementA suggestion for improvement of an existing featureA suggestion for improvement of an existing feature