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

WordPress Trac noreply at wordpress.org
Fri Mar 26 05:38:02 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):

 @adamsilverstein Hey!

 I'm going through the code, and it looks good so far -- thank you!

 Just to make sure I'm not missing anything -- it looks like the current
 patch doesn't have support for the Imagick image editor. Is that correct?

 I think it'd be good to support both GD and Imagick.

 I was able to get a bit of time approved to work on this; I'm happy to
 help with this, and other things like testing for ideal default quality.

 I'm glad to see the new tests you added, thanks! I haven't done this yet,
 but thinking it might be helpful to go through the existing tests that
 exist for the other image formats and create equivalent ones for WebP.

 On a quick look, found one for resizing that might be helpful in verifying
 the operation:
 https://github.com/WordPress/wordpress-
 develop/blob/master/tests/phpunit/tests/image/resize.php#L23

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


More information about the wp-trac mailing list