An automatic image optimizer for the Sitecore media library that reduces image sizes by 8-70%.
Dianoga is an automatic image optimizer for the Sitecore media library that reduces image file sizes by 8-70%. It processes images after they enter Sitecore's media cache, ensuring optimized delivery even when using dynamic resizing, and supports next-gen formats like WebP, Avif, and JPEG XL based on browser support.
Sitecore developers and administrators looking to improve website performance by automatically optimizing media library images without manual intervention.
Developers choose Dianoga because it seamlessly integrates with Sitecore's media pipeline, optimizes images post-processing (where others fail), and reduces bandwidth usage with minimal performance overhead through asynchronous processing.
An automatic image optimizer for the Sitecore media library.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Optimizes images after they enter Sitecore's media cache, ensuring even dynamically resized images are compressed, addressing a core limitation in Sitecore's default processing where post-resizing output is unoptimized.
Automatically serves WebP, Avif, or JPEG XL based on browser Accept headers, reducing image sizes by 25-70% without manual intervention, as per the README's compression studies.
Runs optimization asynchronously after caching, minimizing frontend performance impact, with logs showing processing times of 20ms to a few seconds depending on image size.
Supports adding custom optimizers via the dianogaOptimize pipeline, allowing for additional format support or tailored optimization logic, as highlighted in the config files.
The first request for an image serves the unoptimized version because optimization occurs post-caching, potentially affecting initial page load performance, especially for new content.
Requires manual adjustments like forwarding Accept headers and enabling synchronous strategies for CDN compatibility, adding deployment overhead and risk of misconfiguration, as noted in Azure CDN issues.
Relies on executables like mozjpeg and cwebp that must be installed and maintained, posing challenges in locked-down environments and increasing setup complexity.