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

WordPress Trac noreply at wordpress.org
Fri Mar 19 15:04:04 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 spacedmonkey):

 > 1. WebP support in the Media Library (allow uploads of WebP files and
 generate thumbnails for them);
 > 2. Convert JPEG/PNG/GIF images into WebP instead of or in addition to
 preserving their original format;
 > 3. Test/polyfill WebP support in users' browsers;

 I believe this ticket should cover 1 and 3. Coverted images to webp, could
 have unknown side effects. Also until we get wider testing, we will not
 know issues with webp processing until a wider audience using it.

 Why not add, support for uploads of webp in this ticket and in the next
 release. Then wait until the release after, to automatically convert files
 to webp until the release after that. This will do a couple of things.

 1. Making the code change smaller and easy to review / revert.
 2. Give a whole release cycle for the WordPress community to use and test
 webp uploads and processing.
 3. Gives more time for browser updates to roll out.
 4. Makes this feature, effectly opt in for the first release ( if you
 don't upload a webp then you will not see this change ).

 As we are changing how images are crunched, I am just worried the
 converting to webp will effect quality, coloring or scaling. Going slowly
 here, will make it is easier to spot bugs and give them before this goes
 wider. There is no functionality in core to regenerate images, throught
 there are plugins / wp cli to do. My worry is the different crunch sizes
 will be broken and will hard for users to spot / fix these issues.

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


More information about the wp-trac mailing list