AJAX Thumbnail Rebuild icon
Media, Galleries & Sliders

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.

  • By junkcoder
  • v2.2.1
  • Updated

Overview

AJAX Thumbnail Rebuild describes itself as: “Rebuild your media library one image at a time, without script timeouts - and optimise, replace, or write WebP and AVIF copies of your images.”

It is active on 30,000+ WordPress sites and rated 4.8 out of 5 by 90 users on WordPress.org. Developers can extend it through 0 actions and 21 filters, listed below.

We haven't published a hands-on review of AJAX Thumbnail Rebuild yet. Want one, or need help with it? Send us a request.

How to install AJAX Thumbnail Rebuild

  1. Open the plugin installer. In your WordPress dashboard go to Plugins → Add New Plugin.
  2. Search for it. Type “AJAX Thumbnail Rebuild” and pick the one by junkcoder.
  3. Install and activate. Click Install Now, then Activate.
Install with a zip file or WP-CLI

Download the zip from the WordPress.org plugin page, then go to Plugins → Add New Plugin → Upload Plugin, choose the file and click Install Now. Or from the command line:

wp plugin install ajax-thumbnail-rebuild --activate

Requirements: WordPress 5.7+ · PHP 7.4+ · tested up to WordPress 7.1.4

Hooks & customisation

AJAX Thumbnail Rebuild 2.2.1 fires 0 actions and 21 filters. Use them from your child theme or a snippets plugin to change how it behaves without editing its files.

ajax-thumbnail-rebuild — top hooks
// Filter whether this format is written.
apply_filters( "ajax_thumbnail_rebuild_{static::FORMAT}_enabled", (bool) ATR_Settings::get( static::setting_enabled() ) );

// Filter whether optimising and the copies are queued rather than run on upload.
apply_filters( 'ajax_thumbnail_rebuild_background_enabled', (bool) ATR_Settings::get( 'background_enabled' ) );

// Filter the copy formats and the order they are offered in.
apply_filters( 'ajax_thumbnail_rebuild_copy_formats', array( ATR_Avif::class, ATR_Webp::class ) );

// Filter the query arguments sent to the proxy.
apply_filters( 'ajax_thumbnail_rebuild_proxy_args', $query, $url, $args );

// Filter the finished proxy URL.
apply_filters( 'ajax_thumbnail_rebuild_proxy_url', $proxied, $url );

// Filter whether the front end serves the copies.
apply_filters( 'ajax_thumbnail_rebuild_serve_copies', (bool) self::enabled_formats() );

Browse all 21 hooks with examples →

Need AJAX Thumbnail Rebuild customised?

Tell us what you want changed, added or fixed and we'll reply with an estimate.

WP EXPERTS is independent and not affiliated with junkcoder. Plugin names and logos belong to their owners. Version, rating and install figures from WordPress.org, checked Nov 17, 2026.

Alternatives in Media, Galleries & Sliders

See all →

Enable SVG uploads and sanitize them to stop XML/SVG vulnerabilities in your WordPress website.

1+ million installs Reviewed 17 hooks

Securely upload SVG files to your media library, with built-in sanitization and advanced features for styling and animation.

1+ million installs Reviewed 4 hooks

Responsive slider plugin to create sliders in visual editor easily. Build beautiful image slider, layer slider, video slider, post slider,…

800,000+ installs Reviewed 12 hooks

Easily replace any attached image/file by simply uploading a new file in the Media Library edit view - a real…

600,000+ installs Reviewed 46 hooks