WPThumbs
Themes Plugins By purpose By industry Best-of lists Fix it guides
Free Plugin by junkcoder v2.0.0

AJAX Thumbnail Rebuild

Rebuild your media library one image at a time, without script timeouts - and optimise, replace, or write WebP and AVIF copies of your images.

AJAX Thumbnail Rebuild

The facts

Rating
4.8★ from 90
Active installs
30k+
Price
Free
Last updated
24 Aug 2026
Added
Oct 2009
Requires WP
5.6
Tested up to
WP 7.1
Requires PHP
7.4
Downloads
870,731

Our analysis

AI-assisted

AJAX Thumbnail Rebuild is a WordPress plugin designed to recreate resized copies of images in your media library. It processes images one at a time to avoid script timeouts, making it suitable for libraries of any size. The plugin is useful when image sizes change due to new themes or plugins, ensuring that all images are updated to the correct dimensions.

The plugin allows you to select specific image sizes to rebuild, work on featured images, and monitor progress with a visual interface. It also provides options for optimising images, creating AVIF and WebP copies, and serving images through a proxy. This makes it a versatile tool for managing image assets effectively.

Best for: This plugin is best for WordPress users needing to manage and optimise image sizes in their media library.

What it does well

  • Rebuilds images one at a time to prevent script timeouts
  • Allows selection of specific sizes to rebuild
  • Provides a progress bar and stop button during processing
  • Offers image optimisation features using server-installed tools
  • Creates AVIF and WebP copies for better performance

Where it falls short

  • Requires JavaScript to be enabled
  • No information provided about support or documentation

Verdict

AJAX Thumbnail Rebuild is a practical solution for users who need to update image dimensions and optimise their media library without overwhelming server resources.

From the developer

junkcoder's own description of AJAX Thumbnail Rebuild, lightly tidied.

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.

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.

Beyond rebuilding, each of these is off until you turn it on:

  • Uploads. How hard WordPress compresses the copies it writes, and how large an image may stay before it is scaled down.
  • Optimising. Makes files smaller without resizing them, using the optimisers installed on the server – jpegoptim, optipng, gifsicle, and pngquant where lossy PNG is allowed. Where a host has none, TinyPNG or ShortPixel can do the same job over their API. A file is replaced only when the new one is genuinely smaller.
  • AVIF and WebP copies. Written next to every image WordPress generates and served through a picture element, AVIF first, WebP after it, the original as the fallback – which works behind a page cache.
  • Image proxy. Front end image URLs can be served through wsrv.nl, which resizes and re-encodes on the fly and serves the result from a CDN. Your own files are never touched.
  • Sizes on demand. An upload keeps only its own file, and each size is cut the first time something asks for it.

This plugin requires JavaScript to be enabled.

Contributions are welcome at Github

Read the full description on the official page →

Tagged as

Alternatives

Other plugins for optimising images.

EWWW Image Optimizer

Comprehensive image optimization with WebP, AVIF, Lazy Load, and more. Optimize images automatically for Faste...

Free 1M+ installs 4.8★ (1,838)
Smush

Smush

93

Compress and optimize images, enable lazy load, serve WebP & AVIF, and speed up your site with a global im...

Free 1M+ installs 4.8★ (6,051)
Converter for Media

Speed up your website by using our WebP & AVIF Converter. Optimize images and serve WebP and AVIF images i...

Free 500k+ installs 4.9★ (1,097)
Admin and Site Enhancements

Duplicate post, post order, image resize, email via SMTP, admin menu editor, custom css / code, disable gutenb...

Free 200k+ installs 5★ (421)
SpeedyCache

SpeedyCache is a WordPress cache plugin that helps you improve performance of your WordPress site by caching,...

Free 600k+ installs 4.4★ (30)