Enable filtering mime output by image size#25
Enable filtering mime output by image size#25adamsilverstein wants to merge 8 commits intoadd/webp-uploadsfrom
Conversation
|
Note: needs additional tests to validate filtering with size works as expected |
|
I created this mirror Draft PR against trunk to run tests: WordPress#2933 |
|
@adamsilverstein Is this PR still relevant? To me this looks like a previous attempt/approach to control MIME type availability by size, but in https://make.wordpress.org/core/2022/06/30/plan-for-adding-webp-multiple-mime-support-for-images/ we now proposed to go a different route. Also see my review on WordPress#2393 (review) (I think we should incorporate that there since it is a crucial piece of the functionality that therefore should be committed together). |
Good point, this is outdated anyway. I'll close this out and add the functionality in the main PR. |
wp_upload_image_mime_transformsfilter and apply during image sub-size generation