[wp-trac] [WordPress Trac] #54648: Improve filter to enable setting quality for each subsize image (was: Filter to let define the quality on subsize images)

WordPress Trac noreply at wordpress.org
Tue Dec 21 15:05:59 UTC 2021


#54648: Improve filter to enable setting quality for each subsize image
-------------------------+------------------------------
 Reporter:  Mte90        |       Owner:  adamsilverstein
     Type:  enhancement  |      Status:  accepted
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Media        |     Version:
 Severity:  normal       |  Resolution:
 Keywords:  needs-patch  |     Focuses:  performance
-------------------------+------------------------------
Changes (by adamsilverstein):

 * keywords:   => needs-patch
 * owner:  (none) => adamsilverstein
 * status:  new => accepted


Comment:

 > The real issue is that is not possible to understand as it is now when
 the resize is for the full image or for a subsize image and what is that
 size.

 Ok, got it - so if the filter passed additional context such as a
 reference to the image ID or the size meta, you would have what you need
 to set the appropriate compression level. (or perhaps we need a different
 filter)... Great suggestion, this feels like a nice enhancement!

 I modified the ticket title to clarify the request is about setting
 quality for each sub sized image.

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


More information about the wp-trac mailing list