Changes between Initial Version and Version 1 of Ticket #56288
- Timestamp:
- 07/26/2022 10:14:26 PM (2 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #56288
- Property Keywords has-patch added; needs-patch removed
-
Ticket #56288 – Description
initial v1 1 ## Summary 1 = Summary = 2 2 * Add an option to the `add_image_size` function so that developers can control whether secondary mime types are generated for the image size they are adding. 3 3 4 ## Description 4 = Description = 5 5 In https://core.trac.wordpress.org/ticket/55443 we introduced multi-mime support and the capability to generate sub-sizes in secondary mime types (or even to replace the primary output mime). The code includes a filter that enables developer control over which sizes output secondary mimes. This ticket aims to extend that work by adding control over secondary mime generation per size at the point of registration. 6 6 7 ## Considerations 7 = Considerations = 8 8 This initial proposal is to add a new "output_mimes" boolean parameter to the `add_image_size` function. I also considered instead adding an `$output_options` (keyed) array parameter, this would then have an option for `output_mimes` and in the future we could use this to enable a quality setting per size which we have discussed elsewhere already. 9 9