Add checkbox to Settings > Media to control whether to generate JPEG in addition to WebP#537
Conversation
mehulkaklotar
left a comment
There was a problem hiding this comment.
@mukeshpanchal27 Changes looks good here. We should add some tests for the new setting.
felixarntz
left a comment
There was a problem hiding this comment.
@mehulkaklotar This is on a good path, some quirks to address though.
felixarntz
left a comment
There was a problem hiding this comment.
@mehulkaklotar One more thing: Please make sure to delete the new option in uninstall.php.
felixarntz
left a comment
There was a problem hiding this comment.
@mehulkaklotar This is almost good to go now. Left mostly minor suggestions, so there are two quirks (one little tricky) to still address.
Co-authored-by: Felix Arntz <[email protected]>
Co-authored-by: Felix Arntz <[email protected]>
Co-authored-by: Felix Arntz <[email protected]>
Co-authored-by: Felix Arntz <[email protected]>
Co-authored-by: Felix Arntz <[email protected]>
Co-authored-by: Felix Arntz <[email protected]>
felixarntz
left a comment
There was a problem hiding this comment.
@mukeshpanchal27 @mehulkaklotar One small optimization recommendation here, but other than that this is good to go.
Co-authored-by: Felix Arntz <[email protected]>
felixarntz
left a comment
There was a problem hiding this comment.
Thanks @mukeshpanchal27, LGTM!
Summary
This PR is dependent on the issue #524 and PR #527
PR introduces
generate_webp_and_jpeg-> boolean valuewebp_uploads_upload_image_mime_transformsto image/jpeg and image/webp if thegenerate_webp_and_jpegis trueRemaining work(After #524 is merged)
Fixes #525
Relevant technical choices
Checklist
[Focus]orInfrastructurelabel.[Type]label.no milestonelabel.