[wp-trac] [WordPress Trac] #35725: Add WebP support.

WordPress Trac noreply at wordpress.org
Thu Apr 1 07:24:25 UTC 2021


#35725: Add WebP support.
-------------------------------------------------+-------------------------
 Reporter:  markoheijnen                         |       Owner:
                                                 |  adamsilverstein
     Type:  enhancement                          |      Status:  assigned
 Priority:  normal                               |   Milestone:  5.8
Component:  Media                                |     Version:  3.5
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch needs-testing has-unit-    |     Focuses:
  tests needs-dev-note dev-feedback              |
-------------------------------------------------+-------------------------

Comment (by mikeschroder):

 Thanks @adamsilverstein!

 I tested [attachment:"35725.17.diff"] on a GoDaddy cPanel test site, and
 things seem to be working as expected with both GD and Imagick.

 I noticed that when uploading the lossless test image on this ticket,
 perhaps as expected, the quality of the resizes was reduced significantly,
 as the sizes generated are lossy. I'm wondering if WordPress should detect
 when a lossless image is uploaded, and generate lossless resizes?

 @spacedmonkey I agree that testing to choose an appropriate quality level
 makes sense. I'll do some initial DSSIM testing to help find a level
 that's reasonably close to what users are used to with JPEG uploads. I
 think deep testing (with a wide variety of images) would be warranted
 before #52867. Personal opinion, for adding WebP support by itself, I
 think getting close is fine for an initial commit, and we can
 iterate/improve from there.

 I agree it'd be good to test with S3 plugins and/or others that use
 streams. I don't have a good setup, outside of the existing automated
 tests that are in core (perhaps we can make sure/change them so they are
 also testing with WebP?). If anyone has a real-world setup for this,
 testing would be very appreciated.

 @desrosj Thanks so much! Was great working through that with you last
 night, and it makes it much easier to test+improve this.

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


More information about the wp-trac mailing list