🔥 Black Friday Sale: Get 65% OFF Any PageForge Pro Plan! Use code BF65 Claim Offer →
Account Get it free
AJAX Thumbnail Rebuild icon
Actively maintained Tested with WP 7.1 #18 in image

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.

Active installs30K+10K+ tier
Downloads · 30d15.8K▲ +143.4% vs prev. 30d
Rating4.8/590 reviews
Health score79/100Good
All-time downloads926.5KSince Oct 2009
Support resolved0 / 10% in last 2 months
RequiresWP 5.7PHP 7.4+
Downloads · 7d2.6K▼ -74.6% week over week
Our verdict

Solid choice

AJAX Thumbnail Rebuild is a solid plugin choice in 2026, with a few things worth checking first. It runs on 30K+ sites, is rated 4.8/5 and was last updated 2 weeks ago, and scores 79/100 on our health check.

  • Proven at scale on 30K+ active sites
  • Loved by users — 4.8/5 from 90 reviews
  • Actively developed — last update 2 weeks ago
  • Tested with the latest WordPress (7.1)
  • Momentum — downloads up 143.4% vs the previous 30 days

How does it stack up?

Side-by-side on installs, updates, ratings & support

Daily downloads

1.4K2.8K4.2KSep 5Oct 19Dec 3
Yesterday385
Daily average (1y)226
Peak day5,606Sep 12, 2026
Last 12 months82.1K

Download spikes usually follow a new release — each site that auto-updates counts as a download.

Rankings

Where AJAX Thumbnail Rebuild stands today

WordPress.org search rankings

Live position in the plugin search, top 100
KeywordPositionCompeting pluginsCategory
image >100 10,000 Best image plugins →
Optimize #77 3,384 Best Optimize plugins →
rebuild #1 2,238 Best rebuild plugins →
regenerate #14 1,560 Best regenerate plugins →
thumbnail #1 4,795 Best thumbnail plugins →

Version adoption

Share of active sites per release.

  • 1.1430.8%
  • 2.324.2%
  • 1.1317.1%
  • 2.216.6%
  • 1.127.5%
  • Other3.8%

Rating breakdown

★★★★★★★★★★ 4.8 from 90 reviews

  • 5★92.2%
  • 4★1.1%
  • 3★2.2%
  • 2★0.00%
  • 1★4.4%

About AJAX Thumbnail Rebuild

From the official readme · v2.3.0

Description

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:

  • 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.
  • Background processing. Optimising and the copies are the slow half of an upload. Queue them instead, and the upload finishes as soon as the sizes are written – on Action Scheduler where the site has it, on WP-Cron where it does not.
  • 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

Installation

Upload the plugin to your blog, activate it, done. Everything is under Tools -> Rebuild Thumbnails: the rebuild screen itself, the registered sizes, cleanup, the largest images, and a tab per group of settings.

Changelog

Find the heaviest images that still need optimising - on a new Largest images tab or with wp atr largest - and optimise those first. GIFs are now optimised too, through gifsicle, without losing their animation.

2.3.0

  • New tab Largest images: the heaviest images that still need optimising, heaviest first. An image weighs what optimising would work on – the uploaded file, its sizes, and the untouched original where the settings say to optimise that too – and images already optimised at the current settings are left out unless asked for. “Optimise selected” opens the Rebuild tab with them, heaviest first, so a Stop or a spent service quota halfway still leaves the heaviest done.
  • New WP-CLI commands: wp atr largest lists the heaviest images that still need optimising, and wp atr optimize optimises the images given, the heaviest few with --largest, or every image that still needs it, heaviest first. It says before starting which optimisers the server has and, where TinyPNG or ShortPixel is set up, how many images will be sent there; --dry-run stops there.
  • GIFs are optimised. gifsicle was listed among the optimisers all along but never ran on anything, because GIF was missing from the formats the optimiser works on. A GIF goes to gifsicle, or to ShortPixel where that is set up, and is never written out again through the image editor, which would keep only the first frame of an animation. On a site with gifsicle installed, GIFs are now made smaller – including those earlier versions marked as optimised without touching them. On a server with neither, GIFs are not listed as needing it, since nothing there could shrink them.
  • A selection handed to the Rebuild tab – from the media library or the Largest images tab – is worked through in the order it was handed over, rather than newest first.

2.2.1

  • Nothing is cut while something is only listing the sizes. Advanced Custom Fields hands an image field back as an array of every size the site registers – and a video or audio field the same array for its poster image – and every entry in those lists was answered by cutting the file for it – on a site with ninety-six registered sizes, one image field on one page wrote 240 files and took 29.5 seconds, inside a visitor’s request. Inside that window the full file is returned instead, which is the honest answer while the size does not exist yet; the first time something actually renders one of those sizes it is cut exactly as before. ajax_thumbnail_rebuild_on_demand_while_enumerating puts the old behaviour back.
  • A size the original is too small for is no longer attempted. WordPress does not upscale, so the cut could only fail – but it failed the expensive way, after loading an image editor and reading the file, and again on the next page view for as long as anything asked for that size. It is worked out as arithmetic now, against the file the crop would actually be cut from. An SVG is skipped before any of that, rather than being rasterised once per registered size.
  • A size asked for after its record has gone is cut again. The note that keeps one request from cutting the same size twice was never taken down, so once a rebuild or wp media regenerate had rewritten the attachment metadata, anything asking for that size again was served the full file where it had asked for a crop.

2.2.0

  • New setting The untouched original, under Uploads beside the limit: the full size original kept beside a scaled upload is brought down to the limit as well. WordPress cuts the sub sizes from that file and then leaves it alone at whatever it arrived as, which on a photograph from a modern camera is most of what the library weighs. Off by default, and it cannot be undone – the resolution the original was uploaded at is gone, and no size larger than the limit can be cut from it afterwards. New uploads are covered as they arrive; an image already in the library is covered the next time it is rebuilt, and its -scaled copy comes down with it where that was written to an older limit.
  • A size marked as made on demand can be rebuilt again. It was shown ticked off and disabled on the rebuild screen, so a file cut for it stayed as it was however the size changed. It is now rebuilt for the images that already have it and cut for no others, which refreshes what is there without writing the files the setting exists to avoid.

2.1.1

  • Sizes a theme or plugin adds through ajax_thumbnail_rebuild_on_demand_sizes now show up ticked under Made on demand instead of looking switched off, and are greyed out there: unticking one never had any effect, because the filter put it back on the next read.

2.1.0

  • New setting When the work happens, under Optimising: optimising and the WebP and AVIF copies can be queued instead of run on upload, so an upload finishes as soon as the resized copies are written. The queue runs on Action Scheduler where the site has it and on WP-Cron where it does not.
  • New filters ajax_thumbnail_rebuild_background_enabled and ajax_thumbnail_rebuild_use_action_scheduler.

2.0.1

  • New filter ajax_thumbnail_rebuild_serve_copies. Return false to keep writing the WebP and AVIF copies while the front end serves the originals, for a site where a CDN or the server itself hands the copies out.

Full changelog on WordPress.org →

Screenshots

Rebuilding the library one image at a time, with a progress bar, the image being worked on, and a Stop button.
Rebuilding the library one image at a time, with a progress bar, the image being worked…
Every image size registered on the site, with its dimensions and whether it crops.
Every image size registered on the site, with its dimensions and whether it crops.
Rebuild or optimise a single image straight from the media library.
Rebuild or optimise a single image straight from the media library.
Rebuild, optimise or replace an image from the attachment details, without leaving the page.
Rebuild, optimise or replace an image from the attachment details, without leaving the…
Optimising, using the programs installed on the server - or TinyPNG or ShortPixel where there are none.
Optimising, using the programs installed on the server - or TinyPNG or ShortPixel where…
AVIF and WebP copies of every generated image, served through a picture element.
AVIF and WebP copies of every generated image, served through a picture element.

For developers

Is this your plugin? Show off the numbers.

Add a live badge to your site, docs or GitHub README. It updates on its own — no account needed.

Active installs badge Rating badge Health score badge

Best AJAX Thumbnail Rebuild alternatives

All image plugins →
Alternatives
Rank Plugin Active installs Rating Updated Health
1 Imsanity Imsanity Automatically resizes huge image uploads. Are contributors uploading huge photos? Tired of… by Shane Bishop 200K+ ★★★★★★★★★★ 4.9 (291) 4 months ago 71
2 Firelight Lightbox Firelight Lightbox Formerly Easy Fancybox. The most popular WordPress lightbox plugin. Simple, fast, and… by Firelight 200K+ ★★★★★★★★★★ 4.8 (367) 4 weeks ago 95
3 Responsive Lightbox & Gallery Responsive Lightbox & Gallery The most popular lightbox plugin and responsive gallery builder for WordPress. by dFactory 100K+ ★★★★★★★★★★ 4.9 (2K) 1 week ago 81
4 Simple Lightbox Simple Lightbox The highly customizable lightbox for WordPress by Archetyped 100K+ ★★★★★★★★★★ 4.3 (240) 3 months ago 74
5 reSmush.it : The original free image compressor and optimizer plugin reSmush.it reSmush.it is the FREE image compressor and optimizer plugin - use it to optimize your… by ShortPixel 100K+ ★★★★★★★★★★ 4.3 (166) 4 months ago 83
6 Image Widget Image Widget A simple image widget that uses the native WordPress media manager to add image widgets to… by Nexcess 100K+ ★★★★★★★★★★ 4.9 (287) 8 months ago 58
7 Menu Image, Icons made easy Menu Image, Icons made easy Adds an image or icon in the menu items. You can choose the position of the image (after… by Rui Guerreiro 100K+ ★★★★★★★★★★ 4.5 (123) 1 year ago 39
8 ImageMagick Engine ImageMagick Engine Improve the quality of re-sized images by replacing standard GD library with ImageMagick. by Rickard Westerlind 60K+ ★★★★★★★★★★ 4.4 (16) 2 weeks ago 73
9 Simple Image Sizes Simple Image Sizes This plugin lets you create custom image sizes for your site. Override your theme sizes… by Nicolas Juen 60K+ ★★★★★★★★★★ 4.6 (91) 4 months ago 68
10 All In One Favicon All In One Favicon Easily add a Favicon to your site and the WordPress admin pages. Complete with upload… by Garrett Grimm 50K+ ★★★★★★★★★★ 4.5 (82) 3 years ago 46

FAQ

AJAX Thumbnail Rebuild: quick answers

Straight answers, pulled from live WordPress.org data.

Source: WordPress.org

Is AJAX Thumbnail Rebuild free?

Yes. AJAX Thumbnail Rebuild is free to download and use from the official WordPress.org plugin directory.

Is AJAX Thumbnail Rebuild safe to use in 2026?

AJAX Thumbnail Rebuild is a solid plugin choice in 2026, with a few things worth checking first. It runs on 30K+ sites, is rated 4.8/5 and was last updated 2 weeks ago, and scores 79/100 on our health check.

How many websites use AJAX Thumbnail Rebuild?

AJAX Thumbnail Rebuild is active on 30K+ WordPress websites and has been downloaded 926,516 times since it launched in October 2009. It was downloaded 15,774 times in the last 30 days.

Does AJAX Thumbnail Rebuild work with WordPress 7.1?

Yes. The developer has tested AJAX Thumbnail Rebuild up to WordPress 7.1.5, the latest release. It requires WordPress 5.7 or newer.

What PHP version does AJAX Thumbnail Rebuild need?

AJAX Thumbnail Rebuild requires PHP 7.4 or higher. Most hosts run PHP 8.x today, so it works on any modern WordPress hosting.

When was AJAX Thumbnail Rebuild last updated?

The latest version, 2.3.0, was released on November 20, 2026 (2 weeks ago).

Who makes AJAX Thumbnail Rebuild?

AJAX Thumbnail Rebuild is developed and maintained by junkcoder.

What are the best alternatives to AJAX Thumbnail Rebuild?

The most popular alternatives to AJAX Thumbnail Rebuild are Imsanity (200K+ installs), Firelight Lightbox (200K+ installs) and Responsive Lightbox & Galle… (100K+ installs).

Powered by PageForge

One template and a spreadsheet. A real page for every search.

PageForge turns each row of a CSV into a WordPress page with its own title, URL, SEO fields and schema, built on the layout you already designed. Free on WordPress.org.

  • CSV and XLSX, plus Google Sheets on Professional and Enterprise
  • Its own title, URL, SEO fields and schema for every page
  • Works with the block editor, Elementor, Divi and Avada
  • Free on WordPress.org, no credit card

↑↓ to move↵ to open