This project is not covered by Drupal’s security advisory policy.
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.
Project information
- Project categories: Media
- Created by nishant on , updated
This project is not covered by the security advisory policy.
Use at your own risk! It may have publicly disclosed vulnerabilities.
