Serve images in next-gen formats

Created on 9 October 2019, about 5 years ago
Updated 22 March 2024, 9 months ago

Right now all audits to plain Drupal websites get the warning "Serve images in next-gen formats".


Since this something increasingly important to all Drupal installs, we should consider supporting some of the "next-gen" formats.



- Imagem from auditing drupal.com


The formats that Google Lighthouse indicates are JPEG 2000, JPEG XR, and WebP that still have limited browser support.
In order to make it work on all Drupal supported browsers , we would need to have a fallback strategy.

We would need to be able to also generate images on that formats from the image style, and then make them available on the generated markup.

<picture>
  <source srcset="img/yourImage.webp" type="image/webp">
  <source srcset="img/yourImage.jpg" type="image/jpeg"> 
  <img src="img/yourImage.jpg" alt="Your image">
</picture>
Feature request
Status

Active

Version

11.0 🔥

Component
Image module 

Last updated 3 days ago

Created by

🇵🇹Portugal rfmarcelino

Live updates comments and jobs are added and updated live.
  • Performance

    It affects performance. It is often combined with the Needs profiling tag.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024