[wp-trac] [WordPress Trac] #53669: Respect the quality settings in `wp_editor_set_quality` for lossless WebP

WordPress Trac noreply at wordpress.org
Thu Jul 15 16:41:44 UTC 2021


#53669: Respect the quality settings in `wp_editor_set_quality` for lossless WebP
--------------------------+-----------------------------
 Reporter:  mikeschroder  |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Future Release
Component:  Media         |     Version:  trunk
 Severity:  normal        |  Resolution:
 Keywords:  needs-patch   |     Focuses:
--------------------------+-----------------------------
Changes (by desrosj):

 * milestone:  Awaiting Review => Future Release


Comment:

 It seems like having lossy and lossless may be a thing of the future. In
 addition to WebP, JPEG XL appears to also support both.

 If this is the case, I think adding an additional quality filter for
 compression makes sense.

 - `wp_editor_set_quality` for the compression within the image editing
 tool of choice.
 - `wp_image_compression` for lossy, lossless, or `null` when the format
 does not differentiate with the default being the same as the original
 uploaded image.

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


More information about the wp-trac mailing list