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

WordPress Trac noreply at wordpress.org
Tue May 4 22:46:27 UTC 2021


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

 * version:  3.5 =>


Comment:

 ### Testing Instructions
 * Upload a lossy WebP format image in the media library, in on the upload
 screen, or in the post editor.
 * Some webP test images can be downloaded from
 https://developers.google.com/speed/webp/gallery1.
 * Note that while most servers now support lossy WebP, they may still lack
 support for lossless, animated or alpha features, so those are not
 expected to work.
 * Test cropping the image in the media library, and in the post editor.
 * Test rotating the image in the media library.
 * Test using WebP images anywhere you might normally use a jpeg image: the
 header image, a widget, a featured image, etc.

 In all cases, a WebP image should work just like a jpeg image works (as
 long as the server image engine supports the format you upload!). Note
 that you will need to use a web browser that supports WebP to view the
 images correctly (all modern browsers support lossy WebP -
 https://caniuse.com/webp).

 * Test with and without WebP support on server if possible
   - the server image engine (Imagick or GD) must support WebP images,
 otherwise images will be rejected with an error.
   - If images were somehow transferred to a system lacking native WebP
 support (for example if WebP support is turned off after the images are
 uploaded), WordPress will still determine the image mime type and
 dimensions correctly by examining the file headers.

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


More information about the wp-trac mailing list