wpmgr
Media Optimizer

Convert WordPress images to AVIF and WebP, fully reversible

Turn on Media Optimization and WPMgr re-encodes your library to AVIF and WebP in the cloud. Every browser gets the format it supports, your originals stay safely archived on the site, and you can revert any image with one click.

JPEG and PNG images are the biggest drag on page weight, and CDN resizing still serves the wrong format to older browsers

Modern formats like AVIF and WebP deliver the same visual quality at a fraction of the file size, but converting a full WordPress media library manually is impractical. CDN-based resizing solves delivery but leaves the originals unchanged and often serves one format regardless of what the browser actually supports. WPMgr re-encodes the full image and every thumbnail WordPress generates, stores the originals safely, and lets each browser request the format it understands.

How it works

Under the hood

The steps that make it work, and what each one does.

1

Upload or pick existing images

Flip on auto-optimize and every new upload gets queued the moment WordPress finishes generating its sizes. Already have a full library? Select existing images and send them in batches. No reformatting your workflow.

2

A dedicated encoder re-encodes safely

A dedicated cloud encoder reads each image by its real bytes, not a guessed file extension, and re-encodes the full image plus every thumbnail to AVIF or WebP. Animated GIFs become animated WebP. Your originals are renamed and archived on the site, never deleted.

3

Browsers get the modern format automatically

A small .htaccess rule checks what each visitor's browser actually supports and serves the modern format only when it will display, falling back to the original everywhere else. Pages get lighter with no broken images and no front-end plugin bloat.

4

Revert anytime, fully

Changed your mind, or a single image looks off? Restore puts every archived original back, full image and all thumbnails, and rewrites the URLs in your content. Nothing about optimization is a one-way door.

Bytes saved on a sample uploadfull image + thumbnails
Original JPEG2.48 MB
Optimized AVIF0.71 MB
0%smaller on this sample
Library coverage
Optimized 72%Pending 18%Unsupported 10%

What's included

Every capability ships in the open-source release.

AVIF and WebP for every size

WPMgr totals bytes saved across every variant including all thumbnail sizes WordPress generates, plus a running count of images optimized, so the number on the dashboard reflects real files.

Fully reversible, image and thumbnails

Every archived original can be restored with one click. The restore rewrites all URLs in your content, including thumbnails. Nothing about the optimization process is permanent.

Zero image bytes on the control plane

Source files move from your site to your storage, and optimized files move from the encoder to your storage, using short-lived presigned URLs while WPMgr keeps only metadata.

Opt-in and per-site

Media Optimization is off until you turn it on. Auto-optimize applies to new uploads; batch conversion handles the existing library. Each runs independently per site.

Unused Image Cleaner

Finds media attachments that are not referenced anywhere, shows exactly where each image in use appears, and moves unwanted images to a reversible quarantine. Permanent deletion requires explicit confirmation.

Animated GIF to animated WebP

Animated GIFs are detected and transcoded to animated WebP automatically, significantly reducing file size while preserving motion content.

FAQ

Questions answered

Common questions about this feature.

Does Media Optimizer touch the original images?

No. Originals are renamed and archived on the site before the optimized version is written. They are never deleted. You can restore any image or the entire library with one click.

Does image data pass through WPMgr servers?

No. Source files move from your site directly to your configured storage destination using short-lived presigned URLs. Optimized files move from the dedicated encoder to your storage. WPMgr keeps only metadata, never the image bytes.

How does the browser get the right format?

A small .htaccess rule (or nginx equivalent) checks the Accept header of each request and serves the AVIF or WebP version only when the browser declares support. Browsers that do not support the modern format receive the original automatically.

Does it optimize thumbnails too?

Yes. Every size WordPress generates for an image is included in the optimization batch. Byte savings are counted across the full image plus all thumbnail variants, not just the original upload.

What about animated GIFs?

Animated GIFs are detected automatically and transcoded to animated WebP. The motion is preserved and the file size is typically reduced significantly.

Can I optimize images one at a time or do I have to run the whole library?

Both. You can enable auto-optimize for new uploads, run a bulk batch on the existing library, or select individual images to optimize from the media screen. Each runs independently.

Run your whole fleet from one dashboard.

Free and open source. No per-site fee. The full release is on GitHub.