performance

WM Image Optimizer

Automatic WebP/AVIF conversion and lazy loading for WordPress media.

v1.2.0 Included Stable
View plans Talk to an engineer
Free
On all Wordimatic managed plans
$0
No license fees, ever
Auto
Updates maintained by Wordimatic
Open
Available to audit on request

Every WordPress site serves images, but most serve them in formats and sizes that quietly destroy performance. WM Image Optimizer removes the decision entirely — upload once, serve optimally everywhere, with no workflow change required.

On upload, the plugin runs a non-blocking background job that converts your image to WebP and AVIF, strips EXIF metadata (reducing file size further and protecting visitor privacy), and applies your configured max-dimension limit. The original file is preserved as a fallback for environments that can’t negotiate a modern format. For existing libraries, a single WP-CLI command batch-processes every attachment in the background.

On the front end, loading="lazy" is injected into all <img> tags rendered through WordPress’s standard image functions, and the browser automatically requests the smallest format it supports. No template changes required, no CDN dependency, no third-party API calls, no monthly bill. It’s the kind of performance win that should have been baked into WordPress from the start.

How it works

Three steps to up and running

1

Upload as normal

Drop your images into the WordPress media library exactly as you would today — no workflow change required.

2

Automatic conversion

The plugin intercepts the upload, converts to WebP and AVIF in the background, strips EXIF metadata, and enforces your max-dimension limit.

3

Lazy loading injected

On the front end, native loading='lazy' is injected into all img tags and the browser serves the smallest supported format automatically.

Key features

What's included

Auto WebP + AVIF conversion on upload
Native lazy loading injection
EXIF metadata stripping
Max-dimension enforcement
WP-CLI bulk conversion command
Use cases

Who it's for

  • Cut page weight by 40–60% on image-heavy sites without touching a single template.
  • Eliminate manual image optimisation from your publishing workflow entirely.
  • Reduce hosting bandwidth costs on high-traffic WooCommerce catalogues.
Requirements

Technical requirements

WordPress6.0+
PHP8.1+
WooCommerceNot required
Changelog

Version history

v1.2.0
2025-04-08
  • Added native AVIF support (libavif required)
  • WP-CLI bulk regeneration command
  • Configurable max-dimension per attachment size
v1.1.2
2025-01-14
  • Fixed WebP conversion failure on PNG files with transparency
  • Improved memory handling for uploads over 10 MB
FAQ

Frequently asked questions

Does it reprocess existing images?

Yes — run wp wm-image-optimizer regenerate via WP-CLI to batch-convert your entire media library.

What happens to the original file?

The original is retained. Converted files are served via a content-negotiation header; the original is kept as a fallback.

Does it work with page builders?

Yes. The plugin hooks into wp_get_attachment_image and filters output at the template level, so it works regardless of how images are output.

Get access

WordPress plugins, maintained by engineers.

Every Wordimatic managed plan includes our full plugin library — no license fees, no manual updates, no compatibility surprises.