AJAX Thumbnail Rebuild
AJAX Thumbnail Rebuild recreates the resized copies WordPress makes of every image in your media library. It does them one image at a time, so a library of any size gets through without running into the script timeout that stops the plugins which rebuild everything in a single request. You need this
AJAX Thumbnail Rebuild recreates the resized copies WordPress makes of every image in your media library. It does them one image at a time, so a library of any size gets through without running into the script timeout that stops the plugins which rebuild everything in a single request.
You need this whenever the sizes change: a new theme with different dimensions, a plugin that registers a size of its own, or a size you have edited yourself. WordPress applies those to images uploaded afterwards and leaves everything already in the library at its old dimensions. Rebuilding fills the gap.
On its screen under Tools you can:
- Pick which of the registered sizes to rebuild, so a single changed size does not mean redoing all of them.
- Rebuild only the images used as a featured image – which covers WooCommerce product images and product galleries – or only the file names matching a pattern, e.g. banner-*.jpg .
- Watch it run: a progress bar, the image being worked on, a Stop button, and a list of anything it had to skip.
- See every image size registered on the site with its dimensions and crop setting.
- Clean up the resized files left behind by sizes that no longer exist.
- Find the heaviest images that still need optimising, and optimise those first – where most of the saving is, and what an optimisation service’s quota is best spent on.
You can also work on one image at a time without leaving the media library: a row action rebuilds or optimises a single image, a bulk action hands a selection to the plugin’s screen, and the attachment details panel – wherever it opens – rebuilds, optimises, or replaces the file . A replaced image keeps its id, title and address, so every post and product already pointing at it shows the new picture.
Where there is a shell, a big library is better done from the command line: no browser tab has to stay open and no time limit on a web request applies. wp atr largest lists the heaviest images that still need optimising, and wp atr optimize --largest=50 optimises the fifty heaviest. wp help atr has the rest.
Beyond rebuilding, each of these is off until you turn it on: