[wp-trac] [WordPress Trac] #52788: Add JPEG XL support.

WordPress Trac noreply at wordpress.org
Fri Mar 12 09:48:54 UTC 2021

#52788: Add JPEG XL support.
 Reporter:  atjn             |      Owner:  (none)
     Type:  feature request  |     Status:  new
 Priority:  normal           |  Milestone:  Awaiting Review
Component:  Media            |    Version:
 Severity:  normal           |   Keywords:
  Focuses:  performance      |
 JPEG XL is a new image format that beats JPEG, PNG, WebP and AVIF in
 pretty much all categories. I believe it will be widely used on the
 internet in a few years.

 Cloudinary has made [https://res.cloudinary.com/cloudinary-
 marketing/image/upload/Web_Assets/blog/Battle-of-the-Codecs_fnl.png an
 awesome overview that shows why JPEG XL is better than anything else].
 Please note that they helped make the format, so they could be biased, but
 I haven't found any issues with it.

 First and foremost it would be great to support uploading it to media, but
 down the line I think it could be used for much more. Thumbnails of any
 other image type could be generated in JPEG XL, greatly improving
 performance. It might even make sense to support delivering any source
 image as a JPEG XL, no matter the original encoding.

 Here are a few points I think are especially nice for WordPress:

 - Encoding speed is better than WebP and AVIF, so there's no risk that
 users would have to upgrade their server to use it.

 - It supports
 progressive decode] which is huge for perceived performance, and could
 theoretically allow you to only produce one large thumbnail and then just
 not load the entire image when you need a smaller preview.

 - It is expected to be widely supported, meaning users can use it as their
 main local editing format, they can download and directly view the images,
 and it will work in all browsers. This is not the case for WebP and AVIF,
 which has caused a lot of frustration among developers and end-users.

 JPEG XL is, as of writing, not supported in any browsers, but will almost
 certainly be soon. Chromium has marked it as their highest priority. You
 can see the current status here: [https://caniuse.com/jpegxl

 The official JPEG XL page is here: [https://jpeg.org/jpegxl/
 A free and open source encoder/decoder is in the works:
 [https://gitlab.com/wg1/jpeg-xl gitlab.com/wg1/jpeg-xl]

Ticket URL: <https://core.trac.wordpress.org/ticket/52788>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform

More information about the wp-trac mailing list