[wp-trac] [WordPress Trac] #35725: Add mime-type for Webp

WordPress Trac noreply at wordpress.org
Fri Nov 13 18:42:45 UTC 2020


#35725: Add mime-type for Webp
-------------------------------------------------+-------------------------
 Reporter:  markoheijnen                         |       Owner:  (none)
     Type:  enhancement                          |      Status:  new
 Priority:  normal                               |   Milestone:  Future
                                                 |  Release
Component:  Media                                |     Version:  3.5
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch 2nd-opinion needs-testing  |     Focuses:
  has-unit-tests needs-refresh                   |
-------------------------------------------------+-------------------------

Comment (by atjn):

 Replying to [comment:38 jorbin]:
 > > There are a number of strategies we could pursue, including markup
 based solutions (i.e. <picture>) or [...]
 >
 > I think the picture based solution is much better, but sadly it still
 means IE is left out, so it doesn't give us much more adoption. To me,
 running WP on every image request is a non-starter. That's going to beat
 up a lot of servers.

 @jorbin the <picture> element is specifically designed with older browsers
 in mind. It lets you define a fallback image that older browsers can read
 and understand, while newer browsers will recognize the newer markup
 around the fallback, and use that instead.
 This allows you to support the latest fancy image types like AVIF, while
 falling back to still-performant WEBP for other browsers, and then falling
 back again to JPEG for legacy browsers, all in a few lines of simple
 markup. I highly recommend going with the <picture> solution, and apart
 from triage considerations, I see no reason that it can't be implemented
 and shipped immediately.

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


More information about the wp-trac mailing list