[wp-trac] [WordPress Trac] #54356: Determine and apply best default quality settings for WebP images

WordPress Trac noreply at wordpress.org
Mon Aug 22 22:48:15 UTC 2022


#54356: Determine and apply best default quality settings for WebP images
-------------------------------------------------+-------------------------
 Reporter:  adamsilverstein                      |       Owner:
                                                 |  adamsilverstein
     Type:  enhancement                          |      Status:  assigned
 Priority:  normal                               |   Milestone:  6.1
Component:  Media                                |     Version:  5.8
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch dev-feedback has-unit-     |     Focuses:
  tests                                          |  performance
-------------------------------------------------+-------------------------
Changes (by adamsilverstein):

 * keywords:  needs-patch => has-patch dev-feedback has-unit-tests
 * owner:  (none) => adamsilverstein
 * status:  new => assigned
 * milestone:  Future Release => 6.1


Comment:

 In [attachment:"54356.2.diff"]:
 * Adjust `get_default_quality` function to always return a default quality
 of `82`.
 * Deprecate the `$mime_type` parameter for `get_default_quality` since it
 no longer does anything.
 * Adjust tests to validate 82 quality set for WebP.

 Q: Should we deprecate the entire `get_default_quality` function or warn
 if a `$mime_type` parameter is passed?

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


More information about the wp-trac mailing list