Drupal is a registered trademark of Dries Buytaert
Release: Leaflet 10.4.11 Minor update available for module leaflet (10.4.11). Release: Session Inspector 1.0.8 Minor update available for module session_inspector (1.0.8). Release: Migrate QA 2.0.4 Minor update available for module migrate_qa (2.0.4). Release: CKEditor Description List 3.0.0 Major update available for module ckeditor_descriptionlist (3.0.0). Release: FlowDrop 2.4.0 Minor update available for module flowdrop (2.4.0). Release: JWT Token Refresh 1.0.4 Minor update available for module jwt_token_refresh (1.0.4). Release: ConReg 1.0.0-beta1 First beta version released for module conreg (1.0.0-beta1). Release: AI Image Studio 1.0.0-beta8 New beta version released for module ai_image_studio (1.0.0-beta8). Usage Milestone: Statistics Counter Module statistics_counter crossed 1,000 active installs. Module Revived: Decoupled Router 2.0.7 Module decoupled_router updated after 11 months of inactivity (2.0.7).

Smart Image Optimizer

8 sites No security coverage
View on drupal.org

This module automatically converts newly uploaded JPEG and PNG images to modern WebP and AVIF formats, reducing file sizes and improving page load speeds. It also provides a tool to optimize existing images in your media library and manages cache clearing.

Smart Image Optimizer automatically converts uploaded JPEG and PNG images into modern WebP and AVIF formats for reduced storage usage and faster page delivery in Drupal 10 and 11.

Smart Image Optimizer is a lightweight, high-performance solution for Drupal site owners looking to modernize their media library without manual effort. In the modern web, serving traditional JPEG and PNG files can slow down your site and hurt your SEO rankings. This module provides an automated bridge to modern formats, ensuring your site is fast, lean, and user-friendly.

What solution does this module provide?

It eliminates the "heavy image" problem. By automatically converting every image upload into WebP or AVIF (next-generation formats), it significantly reduces file sizes while maintaining visual quality. Unlike basic converters, it also handles your existing library, allowing you to optimize thousands of old images with a single click.

  • Real-time Optimization: Automatically converts images during the upload process (via Drupal hooks).
  • Next-Gen Format Support: Full support for WebP and AVIF (the most advanced compression currently available).
  • Bulk Conversion Tool: A built-in Batch API process to scan your entire site for old JPEGs/PNGs and convert them all at once.
  • Automatic Cache Management: Automatically flushes Image Style derivatives after conversion so your thumbnails never break.
  • Modern Architecture: Built specifically for Drupal 10 and 11 using Dependency Injection, making it stable, testable, and developer-friendly.
  • Flexible Cleanup: Option to keep original files or delete them permanently to save disk space.
  • Enable the module: Check the "Enable" box to start optimizing new uploads.
  • Choose your format: Select between WebP (standard) or AVIF (maximum compression).
  • Adjust Quality: Set your preferred compression level (Default is 80).
  • Bulk Optimize: If you have an existing site, open the "Bulk Operations" tab and run the converter to process all legacy images currently in your database.
  • PHP 8.1+ (PHP 8.1 is required for AVIF support).
  • GD Library or ImageMagick: Your web server must have the PHP GD extension compiled with WebP/AVIF support (standard on most modern hosting environments).
  • Drupal Core: 10.x or 11.x.
  • ImageMagick: While the default GD library works great, ImageMagick provides even higher quality compression for AVIF.
  • WebP: While the WebP module is popular, Smart Image Optimizer differentiates itself by offering AVIF support out of the box and a much simpler, more modern codebase leveraging Dependency Injection for better compatibility with Drupal 11.
  • ImageAPI Optimize: A powerful toolkit for optimization, but it can be complex to configure. This module is designed for users who want a "plug-and-play" experience specifically for format conversion.

Activity

Tracked releases
1
Tracked since
May 2026
Latest release
3 months ago
Releases (12 mo)
1 ▲ from 0
Maintenance
Active

Releases

Version Type Release date
1.0.0 Stable May 11, 2026