Drupal is a registered trademark of Dries Buytaert
Protected Pages 3.0.0 Major update available for module protected_pages (3.0.0). Commerce Core 3.3.8 Minor update available for module commerce (3.3.8). Search API HTML Element Filter 1.0.7 Minor update available for module search_api_html_element_filter (1.0.7). Layout Builder Reorder 2.0.1 Minor update available for module layout_builder_reorder (2.0.1). Ban 1.1.0 Minor update available for module ban (1.1.0). Field Formatter Range 2.0.0 Major update available for module field_formatter_range (2.0.0). Field Formatter Range 8.x-1.8 Minor update available for module field_formatter_range (8.x-1.8). UI Patterns (SDC in Drupal UI) 2.0.18 Minor update available for module ui_patterns (2.0.18). Search API Solr 4.3.11 Module search_api_solr updated after 14 months of inactivity (4.3.11). Provus Mega Menu Module provus_mega_menu crossed 1,000 active installs.

ImageAPI Optimize WebP

4,630 sites Security covered
View on drupal.org

This module adds support for creating WebP image versions when using the ImageAPI Optimize module. It allows you to automatically generate WebP derivatives of your styled images, which can improve performance.

This module provides a WebP processor for the ImageAPI Optimize module. When added to a pipeline, a .webp derivative is created from the source image, providing 2 versions of a styled image.

Example Image Render Cycle:

  1. 'Banner' image style is applied to image1.jpg
  2. ImageAPI Optimize takes the stylized image and runs it through the defined pipeline
  3. ImageAPI Optimize WebP creates a .webp version of the stylized image.
  4. Additional optimization occurs on the source stylized image.
  5. Both the source stylized image(image1.jpg) and webp derivative(image1.webp) are copied to the styles folder.

Currently, a submodule is being created to include the .webp derivative with Drupal core's Responsive Image module. Progress can be followed along here: #3061598: Create submodule for responsive_image support.. Without the submodule, this module will provided limited functionality without customization in your theme.

Recommendations:

  • You should place the WebP processor before any other compression processors to avoid duplicate compression of an image. This can have an inverse affect and provide a lower quality image at a larger file size.
  • You are encouraged to set your sitewide GD toolkit quality to 100, and allow ImageAPI Optimize to handle compression/optimization. This is again to avoid duplicate compression of images. We've created another module: ImageAPI Optimize GD to allow for standard image quality reductions in your pipelines, however checkout ImageAPI Optimize for a full list of processors.

Note:

There is some overlap with this module and the WebP module. The difference being this module is intended to only support projects using ImageAPI Optimize. Because of the overlap between these modules(and the need to override the same route), both modules cannot work in tandem for the time being.

Activity

Total releases
2
First release
Feb 2025
Latest release
3 weeks ago
Releases (12 mo)
1
Maintenance
Active

Releases

Version Type Release date
3.0.0-beta1 Pre-release Jun 24, 2026
3.0.0-alpha2 Pre-release Feb 24, 2025