Resizing WordPress Images with AJAX Thumbnail Rebuild
This is a quick post on how to resize images from WordPress media library after they’ve been uploaded.
In a rush?
- Download and install the AJAX Thumbnail Rebuild plugin on your WordPress site
- Go to “Tools > Rebuild Thumbnails” and follow the steps
What’s the current problem?
Once you’ve uploaded images to the media library, it’s impossible to resize them to the new sizes that you’ve added using add_image_size() function.
How does AJAX Thumbnail Rebuild solves the problem?
Although the name is a little bit misleading, ATR (AJAX Thumbnail Rebuild) goes through all the images that you have uploaded before and creates the new image sizes that you’ve added using the add_image_size() function.
Other similar plugins used to do all this process in the backend, which often timed out for large image libraries. That’s where ATR came up with a way to do it using AJAX and that’s why the plugin name is AJAX Thumbnail Rebuild.
How to use it?
- Add the image sizes that you’re going to use across your site using add_image_sizes() WordPress function
- Download and install the AJAX Thumbnail Rebuild plugin on your WordPress site
- Go to “Tools > Rebuild Thumbnails”
- Select the thumbnail sizes that you want to re-generate and click “Regenerate all Thumbnails”
This is a great plugin and its functionality should really be considered to be included in WordPress.




Hi, I used this plugin before, but now it stopped working and just gives error 500. Any clues on how I can diagnose this ?
There are lots of reasons what could be causing this 500 error. If you really need to get it working, go to the plugin directory and start studying the way it works. Then start debugging line by line and trying to figure out where the code is breaking.
You can debug using a script like the one below. Simply go line by line (using your smart programmer skills) and trying find where it breaks.
die('<pre>'.var_export($var, true).'</pre>');If you’re not a developer then I suggest to either get a developer or re-upload the images that you wanted to get resized.
Hope this helps!