[wp-trac] [WordPress Trac] #54648: Improve filter to enable setting quality for each subsize image

WordPress Trac noreply at wordpress.org
Fri Nov 29 23:47:06 UTC 2024


#54648: Improve filter to enable setting quality for each subsize image
-------------------------------------+-------------------------------------
 Reporter:  Mte90                    |       Owner:  adamsilverstein
     Type:  enhancement              |      Status:  closed
 Priority:  normal                   |   Milestone:  6.8
Component:  Media                    |     Version:
 Severity:  normal                   |  Resolution:  fixed
 Keywords:  has-patch has-unit-      |     Focuses:  performance,
  tests needs-dev-note commit        |  sustainability
-------------------------------------+-------------------------------------
Changes (by adamsilverstein):

 * status:  accepted => closed
 * resolution:   => fixed


Comment:

 In [changeset:"59473" 59473]:
 {{{
 #!CommitTicketReference repository="" revision="59473"
 Media: improve filter to enable setting output quality by image size.

 Add a new $size parameter to the  wp_editor_set_quality filter. $size is
 an array with 'width' and 'height' keys. Developers can use this
 information to set image quality based on the image size.

 Props adamsilverstein, joemcgill, Mte90, codekraft, birgire, azaozz,
 sppramodh.
 Fixes #54648.
 }}}

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


More information about the wp-trac mailing list