Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #56288


Ignore:
Timestamp:
07/26/2022 10:14:26 PM (2 years ago)
Author:
adamsilverstein
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #56288

    • Property Keywords has-patch added; needs-patch removed
  • Ticket #56288 – Description

    initial v1  
    1 ## Summary
     1= Summary =
    22* 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.
    33
    4 ## Description
     4= Description =
    55In 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.
    66
    7 ## Considerations
     7= Considerations =
    88This 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.
    99