Child Themes

Divi Image Compressor

V2 Available Now!

Automatically compress and convert every image you upload to WebP, reducing file sizes by up to 80% without visible quality loss. No manual steps, no extra tools.

Purchase on ET Marketplace

Overview & Features

Images are the single biggest factor in page load speed on Divi sites. Divi Image Compressor automatically handles compression and WebP conversion the moment you upload — so you never have to think about it again.

Every image that enters your media library is compressed to your chosen quality level and optionally converted to WebP, the modern image format that's typically 25–35% smaller than an equivalent JPEG or PNG. Your Divi pages load faster, your Core Web Vitals improve, and your visitors get a better experience.

Compress on upload

Every image is automatically compressed the moment it's added to your media library. No manual steps needed.

WebP conversion

Convert JPG, PNG and GIF images to WebP automatically. Transparency is preserved for PNG files.

Custom quality level

Set your own compression quality from 1 to 100. The default of 80 gives excellent quality with significant size savings.

Max dimensions

Set a maximum width and height. Oversized images are scaled down proportionally while maintaining aspect ratio.

Bulk compress

Apply your settings to all existing images in your media library in one click — processed in batches to avoid timeouts.

ImageMagick & GD

Uses ImageMagick for best quality if available, falls back to GD Library automatically. Works on virtually every host.

Installation

Download the plugin

Download divi-image-compressor.zip from your DiviPerfect account or the Elegant Themes Marketplace.

Upload to WordPress

In your WordPress admin, navigate to Plugins → Add New → Upload Plugin. Click Choose File, select the zip you downloaded, then click Install Now

Activate the plugin

Once the upload completes, click Activate Plugin. The plugin is now active and running on your site with sensible defaults.

Open the settings panel

Go to DiviPerfect → Image Compressor in your WordPress admin menu. Adjust the compression quality, then click Save Settings.

Check server status

Open the settings page — a green banner confirms your server has ImageMagick or GD Library available and compression is ready to go.

Enable and save

Make sure the Enable Image Compression toggle is on and click Save Settings. New uploads will now be compressed automatically.

Purchase on ET Marketplace

Settings Reference

All settings live under DiviPerfect → Image Compressor in your WordPress admin.

Purchase on ET Marketplace

Enable Image Compression

The master on/off toggle. Turn this off to pause all compression and WebP conversion without deactivating the plugin. Must be enabled and saved before bulk compression will work.

Compression Quality

Controls how aggressively images are compressed. Higher values preserve more detail but produce larger files. Lower values produce smaller files but may introduce visible artefacts at very low settings.

WebP Conversion

Controls how aggressively images are compressed. Higher values preserve more detail but produce larger files. Lower values produce smaller files but may introduce visible artefacts at very low settings.

Convert to WebP

Master toggle for WebP conversion. Turn off to compress without converting the format.

Keep Original File

Keep the original JPG/PNG alongside the new WebP. Uses more disk space but lets you fall back to the original. Off by default.

Convert JPG / JPEG

Convert JPEG images to WebP on upload. On by default.

Convert PNG

Convert PNG images to WebP. Transparency is fully preserved. On by default.

Convert GIF

Convert GIF images to WebP. Off by default — animated GIFs will lose their animation if converted.

Maximum Dimensions

Set a maximum width and height in pixels. Any image larger than these dimensions will be scaled down proportionally, the aspect ratio is always maintained. Set either value to 0 to apply no limit on that axis. The default is 2400 × 2400px which is more than enough for any Divi layout.

Bulk Compress Existing Images

The bulk compressor applies your current settings to all images already in your media library — not just new uploads. It processes images in batches of 5 to avoid server timeouts, with a live progress bar showing how many have been processed.

Before running bulk compression: Back up your /wp-content/uploads/ folder. Compression cannot be undone. If Keep Original File is off, the original files will be permanently replaced.

Important: Make sure the Enable Image Compression toggle is turned on and you have clicked Save Settings before running the bulk compressor otherwise compression will not work.

What gets processed

The bulk compressor processes all JPEG, PNG, GIF and WebP images in your media library including images that were already converted to WebP on upload. Already-converted WebP files are compressed in-place at your chosen quality level. The file size shown in the media library updates automatically after each image is processed.

Server Requirements

The plugin needs one of the following PHP extensions to process images. Both are available on the vast majority of WordPress hosts.

The green status banner at the top of the settings page tells you exactly which library is active on your server. If neither is found, an orange warning is shown with instructions to contact your host.

For self-hosted servers (VPS or dedicated), both can be installed easily via your package manager. If your server can run Divi 5, it almost certainly already has GD Library available.

ImageMagick

The best option, found on most managed hosts. Used automatically if available. Produces the best compression results.

GD Library

Okay, found on 99% of managed hosts. Fallback if ImageMagick is not available. Enabled by default on almost all shared hosting.

Support

If you run into any issues or have questions not covered in this documentation, the DiviPerfect support team is happy to help.

Reach out via the support tab on the Elegant Themes Marketplace product page, or email us directly at hello@diviperfect.com. We aim to respond within 24 hours on business days.

Contact Us

Frequently Asked Questions

Find answers to the most common questions about our Divi Image Compressor Post Plugin.

Will it compress images I've already uploaded?

Yes — use the Bulk Compress Existing Images button at the bottom of the settings page. Make sure the enable toggle is on and saved before running it.

My images were converted to WebP but the file size looks the same

WordPress shows the file size of the scaled version it creates on upload, which may already be smaller than the original. Check the actual file size in your hosting file manager or FTP client for an accurate comparison. Also try lowering the quality slider to 60–70 for more aggressive compression.

Will existing Divi pages break if images are converted to WebP?

No. The plugin updates WordPress's attachment records (file path, mime type, metadata) after conversion, so Divi and WordPress will serve the new WebP file correctly. All image references in your pages continue to work.

Can I convert images back from WebP to JPEG?

Not automatically — this is why the Keep Original File option exists. If you enable it before uploading or running bulk compression, the original JPEG/PNG is kept alongside the WebP so you always have a fallback.

Does it affect animated GIFs?

Converting GIFs to WebP will remove the animation — the first frame is used as a static WebP image. This is why GIF conversion is off by default. Leave it off if you use animated GIFs on your site.

Does it work with WooCommerce product images?

Yes. WooCommerce product images go through the standard WordPress upload process, so they are compressed and converted automatically just like any other image.

What about AVIF format?

AVIF support is planned for a future version. AVIF requires PHP 8.1+ with specific server libraries that are not yet widely available on shared hosting. WebP currently offers the best balance of compression and universal compatibility.