[wp-trac] [WordPress Trac] #52867: Add capability to set default format for image sub-sizes.

WordPress Trac noreply at wordpress.org
Wed Apr 21 16:16:18 UTC 2021


#52867: Add capability to set default format for image sub-sizes.
---------------------------------------------------+---------------------
 Reporter:  adamsilverstein                        |       Owner:  (none)
     Type:  enhancement                            |      Status:  new
 Priority:  normal                                 |   Milestone:  5.8
Component:  Media                                  |     Version:
 Severity:  normal                                 |  Resolution:
 Keywords:  has-patch has-unit-tests dev-feedback  |     Focuses:
---------------------------------------------------+---------------------

Comment (by mikeschroder):

 Just tested, and this looks to work pretty well, thank you!

 Two notes:
 - I noticed that the default image editor on my environment, Imagick, did
 not support WebP. GD on the same system did support WebP, but it wasn't
 used because the editor is chosen on whether it supports the format being
 loaded. This is an existing problem, really -- but figured it was worth
 mentioning.

 - I wonder if we should name this filter `image_editor_output_format` to
 line up with the existing `image_editor_default_mime_type` and
 `image_editor_save_pre`?

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/52867#comment:16>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list