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

WordPress Trac noreply at wordpress.org
Thu Jan 20 10:21:35 UTC 2022


#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:  has-patch needs-unit-tests  |     Focuses:  performance
----------------------------------------+------------------------------

Comment (by codekraft):

 hi @adamsilverstein, it seems so, the same quality is used for all images.
 I added that snippet at the end of functions.php in my template.

 To make a quick test just use that snippet and upload an image above
 2000px, what I expect is that the images above 2000px are compressed but
 it seems that a are applied to all.

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


More information about the wp-trac mailing list