Optimize Images

PageSpeed Optimization Filters

Benefits

The 'Optimize Images' optimization stage comprises three optimization passes. Enabling rewrite_images implies enabling inline_images, recompress_images, convert_png_to_jpeg, and resize_images.

In every case, the image on the page is replaced by the optimized version only if the optimized version is actually smaller than the original.

Configuration

Enable pagespeed EnableFilters rewrite_images
Enabled by default via RewriteLevel CoreFilters
Disable pagespeed DisableFilters rewrite_images

Risk Classification

Moderate

Chance of decreasing image quality, depending on recompression settings.

Example

soon available