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

WordPress Trac noreply at wordpress.org
Fri Jul 16 07:03:27 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:
--------------------------+-----------------------------

Comment (by mikeschroder):

 Replying to [comment:1 desrosj]:
 > 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.

 Looks like [https://developer.mozilla.org/en-
 US/docs/Web/Media/Formats/Image_types AVIF supports lossless as well]!

 I like this proposal / direction.

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


More information about the wp-trac mailing list