Key points
- Pages mostly display thumbnails: an optimization that only processes the original changes very little.
- Start with the sizes. Orphaned sizes left behind by old themes are no longer useful, and nexya Pro spots them.
- Only one extension should convert to WebP, otherwise resized images may result in errors.
- Regenerate last. The Media module does it in batches, in the background, and it is free.
- No AVIF or advanced compression in the Media module.
Optimizing WordPress images: what the visitor actually loads
When you want to optimize WordPress images, you usually think first about the file uploaded to the media library. However, this file is almost never the one the visitor sees. With each upload, WordPress creates several resized copies: standard sizes, plus those declared by the theme and certain plugins.
A page then displays the size that fits the location: a thumbnail in a post list, a medium size in the text, a large one in the header. The browser chooses among these versions based on the screen width.
An optimization that only handles the original file therefore misses the point entirely. This is precisely what several recent topics on the WordPress.org forums describe: “optimization no longer takes thumbnails into account.” The original file has been shrunk, the thumbnails have remained untouched, and the page weight hasn’t changed.
The right approach is to think in three steps: know which sizes exist and which ones are still used, choose the format, and then regenerate the thumbnails so the whole site benefits.

Choosing which images to optimize: start with the sizes
Another question that frequently comes up on the forums is “how to choose which images to optimize.” In most cases, the real choice isn’t about one image or another. It’s about the sizes.
A site that has changed themes once or twice keeps the sizes declared by the old themes on the disk. No one requests them anymore, but they still exist for every image. They are called orphan sizes. Optimizing them is a waste of time. Regenerating them is the same.
In nexya Pro, the Media module detects these orphan sizes. This lets you see what is no longer used before running anything across the entire media library. The free version does not contain this code.
It must also be stated clearly: nexya does not allow you to choose images one by one to optimize them. If you only want to process certain files, organize them first. nexya Pro adds folders to the media library, which makes this organization easier.
Before optimizing an image, check whether the size you are processing is still displayed somewhere.
Switching to WebP without damaging the resized images
The Media module converts images to WebP. This format generally weighs significantly less than JPEG or PNG, at comparable visual quality, and all modern browsers support it.
A forum topic reports errors on resized WebP images when a “next-gen” format option is active. The usual cause is simple: two tools are working on the same files. WordPress can produce WebP itself if the server’s image library allows it. If a plugin then converts the same files, the metadata and the files on the disk no longer match.
The rule is therefore to entrust the conversion to a single tool. If you use the Media module’s conversion, disable the WebP conversion of the other plugin, and vice versa if you keep the other one.
Conversion also depends on the server. If GD or Imagick do not handle WebP there, no plugin can bypass it. The Media module does not fix upload failures originating from the server either, such as a 502 error or an Imagick issue. These cases must be resolved with the hosting provider.
Optimizing WordPress images with the Media module, in four steps
-
1
Turn on the Media module
In the nexya hub, activate the Media module. A disabled module records no hooks. You can therefore activate it only for the duration of the operation if you wish.
-
2
Reviewing the sizes
Note the sizes your current theme actually needs. In nexya Pro, the Media module spots orphaned sizes left behind by old themes or old extensions.
-
3
Entrusting WebP conversion to a single tool
Use the Media module's WebP conversion and disable that of any other extension. If conversion fails, ask the host if GD or Imagick handle WebP on the server.
-
4
Regenerating thumbnails in batches
Start regeneration last. It proceeds in batches, in the background, and continues even if you close the tab.
Regenerating thumbnails so the change applies everywhere
Changing themes, removing a size, or switching to WebP does not affect existing files. WordPress only creates thumbnails upon upload. Images uploaded before the change therefore keep their old sizes until they are recreated.
The Media module regenerates thumbnails in the background, in batches. Processing continues even if you close the tab, preventing it from stopping midway on a large media library or limited hosting. This feature is part of the free version.
Keep the order: take stock of the sizes first, set up the format, and regenerate last. If you regenerate before sorting out the sizes, you will have to start over.
What the Media module does not do
It’s good to know this before removing another plugin. The Media module does not produce AVIF. It also does not offer advanced compression, such as choosing a lossy or lossless compression level image by image.
If you need these settings, you can keep a dedicated compression tool alongside nexya. In this case, clearly divide the roles: a single tool for format conversion, and regeneration done just once, at the end.
- No AVIF format.
- No advanced compression settings.
- No image-by-image selection.
- No correction of server-side upload errors (502, Imagick).

Free or nexya Pro: who does what
nexya brings together modules in a single admin panel. You turn on Media from the hub. A disabled module records nothing: none of its hooks run on the site.
Background and batch thumbnail regeneration is free, on as many sites as you want. nexya Pro adds orphan size detection and media library folders. nexya Pro is sold on nexya.dev, delivered by Freemius after purchase, and uses the exact same settings as the free version.
One last point: multisite networks are not supported. On a network, the extension remains disabled and indicates this.
FAQ
Why are my thumbnails not optimized when the original image is?
WordPress creates thumbnails at the time of upload. An optimization done afterwards on the original alone does not modify them. You must process each size, or regenerate the thumbnails once the format is set.
Does the nexya Media module convert to AVIF?
No. It converts to WebP, but does not produce AVIF and does not offer advanced compression.
Can you choose images to optimize one by one?
Not with nexya. Sorting is done by sizes: nexya Pro spots orphaned sizes, and its folders in the media library help organize files.
Is thumbnail regeneration paid?
No. Background and batch regeneration is part of the free version. The detection of orphaned sizes and folders are reserved for nexya Pro.
My image uploads fail with a 502 error: can the Media module fix that?
No. These failures come from the server, for example from Imagick or its limits, and the Media module cannot fix them. You need to check with the hosting provider.
The modules in this post
Try nexya Pro free for 7 days
Every module, forms, newsletters and the page cache, on your site. No commitment.