-
Notifications
You must be signed in to change notification settings - Fork 143
Closed
Labels
Needs DiscussionAnything that needs a discussion/agreementAnything that needs a discussion/agreement[Plugin] Modern Image FormatsIssues for the Modern Image Formats plugin (formerly WebP Uploads)Issues for the Modern Image Formats plugin (formerly WebP Uploads)[Plugin] Performance LabIssue relates to work in the Performance Lab Plugin onlyIssue relates to work in the Performance Lab Plugin only[Type] BugAn existing feature is brokenAn existing feature is broken
Description
Bug Description
I know the main intent was to provide a replacement jpeg->webp but for an ecommerce I had to change the normal operation of the plugin (otherwise it would have been of little use since the images were almost all png with transparency)
Steps to reproduce
- Add the filter
add_filter('webp_uploads_upload_image_mime_transforms', function() {
return array(
'image/png' => array( 'image/png', 'image/webp' ),
'image/webp' => array( 'image/webp', 'image/png' ),
);
});- Create a page and upload a bunch of png images
- When you view that page and the fallback script is activated it tries to replace images jpg images only
Additional Context
- was previously discussed here Provide fallback JPEG images in frontend when WebP is not supported by the browser #360 (comment)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Needs DiscussionAnything that needs a discussion/agreementAnything that needs a discussion/agreement[Plugin] Modern Image FormatsIssues for the Modern Image Formats plugin (formerly WebP Uploads)Issues for the Modern Image Formats plugin (formerly WebP Uploads)[Plugin] Performance LabIssue relates to work in the Performance Lab Plugin onlyIssue relates to work in the Performance Lab Plugin only[Type] BugAn existing feature is brokenAn existing feature is broken