> ## Content Index
> Fetch the complete content index at: https://wp-pluginskit.org/llms.txt
> Use this file to discover other available public pages before exploring further.

# Regenerate Thumbnails: rebuild WordPress image sizes safely
- URL: https://wp-pluginskit.org/regenerate-thumbnails/
- Published: 2026-11-26T12:26:59.000Z
- Updated: 2026-11-27T16:23:17.000Z
- Description: Create the image sizes your current theme needs, verify one attachment first, and keep old image links working.
- Author: Eric Bennett
- Tags: Plugins, #free, Images and media

Use Regenerate Thumbnails to create the WordPress image sizes missing after a theme change or a change to your registered sizes. Back up the site, regenerate one attachment with old-file deletion switched off, and check the page that uses it before processing a larger group. I recommend that small first pass because creating new image files doesn't automatically update every image already inserted into a post.

## Confirm the size you need

The free [Regenerate Thumbnails plugin](https://wordpress.org/plugins/regenerate-thumbnails/?ref=wp-pluginskit.org) rebuilds the additional sizes WordPress creates from uploaded images. Despite its name, it can regenerate more than the size named `thumbnail`. It uses the sizes registered by your current WordPress setup, including sizes supplied by the active theme and plugins.

Open **Tools → Regenerate Thumbnails** and inspect the registered sizes before starting. For WordPress's basic image settings, check **Settings → Media**. If you change those dimensions, click **Save Changes** before regenerating. A theme-specific card size may come from the theme instead; changing the Thumbnail setting won't necessarily change that card.

If the size you need isn't registered, fix its configuration first. Repeating a regeneration can't create a size your site isn't requesting. Keep the intended theme and size-defining plugins active while doing this work.

Regeneration creates derived image sizes. If you need to replace the source photograph, use a source-file replacement workflow first. If you need smaller downloads through compression or another image format, handle that as a separate optimization task after the required sizes exist.

Check the source image too. WordPress's [image-resizing rules](https://developer.wordpress.org/reference/functions/image%5Fresize%5Fdimensions/?ref=wp-pluginskit.org) preserve proportions when fitting an image inside maximum dimensions, or crop it when cropping is requested. They don't automatically enlarge a small original to satisfy a larger target. A missing oversized variant can therefore be expected rather than an error.

## Back up before changing files

Make a restorable backup of both uploads and the database, and use a staging copy for a large library or a substantial theme change. The plugin writes image files and attachment metadata. A database-only backup won't restore deleted image files; an uploads-only copy won't restore the corresponding metadata. If you need a backup workflow, start with [UpdraftPlus backup and recovery](https://wp-pluginskit.org/updraftplus/).

Confirm that the full-size source is available to WordPress. If an offload service has removed local originals, check that service's supported regeneration workflow before proceeding. A working CDN image URL doesn't establish that the server can read the source file needed to resize it.

Leave **Delete thumbnail files for old unregistered sizes** unchecked. An old size can still appear in saved post content, an email or a link outside your control. The plugin's own option warns that deletion can break images in posts and pages. I'd separate cleanup from regeneration until the new files and existing pages have been checked.

![Unchecked Delete thumbnail files option in Regenerate Thumbnails](https://storage.ghost.io/c/22/ff/22ffd352-f3bc-45bd-a485-cf053432a3b5/content/images/2026/11/wppluginskit-regenerate-thumbnails-context-desktop-f8de14dc49.webp)

Keep old-file deletion unchecked until existing image references have been reviewed.

## Regenerate one image first

1. Open **Media → Library** and switch to list view. Find an image used on a page that needs the new size.
2. Use its **Regenerate Thumbnails** row action. The attachment details and Edit Media screens also provide a single-image button.
3. Review the registered sizes, filenames and file-existence information on the single-attachment screen.
4. Keep **Skip regenerating existing correctly sized thumbnails (faster)** enabled for a missing-size repair. Keep old-file deletion disabled.
5. Start regeneration, read the result, then inspect the listed sizes again. Check the actual page that uses the image, including its crop and sharpness at a narrow and a wide screen width.

![Blue Regenerate Thumbnails button for the selected attachment](https://storage.ghost.io/c/22/ff/22ffd352-f3bc-45bd-a485-cf053432a3b5/content/images/2026/11/regenerate-thumbnails-regenerate-button-c0786e8a.webp)

Use the single-image action first, then inspect the regenerated sizes and the page that uses them. [View full size (opens in a new tab)](https://storage.ghost.io/c/22/ff/22ffd352-f3bc-45bd-a485-cf053432a3b5/content/images/2026/11/regenerate-thumbnails-regenerate-button-c0786e8a.webp?ref=wp-pluginskit.org)

The Skip option compares expected dimensions with the saved size information and checks that the corresponding file exists. That avoids rebuilding files already considered correct. It doesn't inspect whether a same-sized image contains the crop or content you now want.

If you're deliberately rebuilding the same dimensions after a crop-rule or source-content change, uncheck Skip for that one-image check. Confirm the result before applying the same choice to a group. Switching off deletion preserves old unregistered files; it doesn't prevent regeneration from replacing a file at a current size's filename.

## Check existing posts separately

**Regenerate Thumbnails 3.1.6 doesn't automatically rewrite image references in post content.** Older screenshots and the repository description can suggest otherwise. In the [versioned 3.1.6 implementation](https://plugins.svn.wordpress.org/regenerate-thumbnails/tags/3.1.6/includes/class-regeneratethumbnails-regenerator.php?ref=wp-pluginskit.org), the post-update function is disabled. Don't plan a migration around an old “Update the content of posts” checkbox.

After regeneration, compare a freshly inserted image with an existing use of the same attachment. In the existing post, inspect the image's selected size and its saved URL or markup. If it still points to an old variant, select the intended size or reinsert that image in the editor, save the affected post, and check its front end again. Keep the previous file available while making that change.

A featured image loaded dynamically through the theme and an image stored in post content can follow different paths. Verify both when your layout uses both. If the correct new file exists but visitors still see the previous image, inspect the page's actual image URL and clear the relevant page or image cache before running regeneration again.

## What the published example shows

[Learn WordPress's regeneration lesson](https://learn.wordpress.org/lesson-plan/regenerate-thumbnails/?ref=wp-pluginskit.org) demonstrates the difference between generating files and changing an existing post. Its WordPress 5.5 / Twenty Sixteen example changes the thumbnail from **150 × 150** to **200 × 200 pixels**, requests a **400 × 200** maximum medium size, and regenerates the attachments.

The newly inserted thumbnail is 50 pixels larger in each dimension. Images already inserted in the post retain their previous dimensions. The lesson was updated in April 2023 and doesn't identify the plugin, PHP or server versions, so those numbers describe that demonstration's settings and outcome.

That result is why I check an existing post as well as the attachment screen. Successful file generation answers one question; whether the page now requests the intended file answers another.

## Choose the smallest useful batch

For a known group of affected images, stay in the Media Library's list view, select them, choose **Regenerate Thumbnails** from Bulk Actions and apply it. Confirm that the next screen refers to your selected attachments before starting.

For a wider change, use **Tools → Regenerate Thumbnails**. Choose the featured-images-only action when those are the attachments you need to process, or all attachments when the new sizes are needed across the library. Featured-images-only limits attachments; it doesn't mean “generate only one featured-image size.”

Keep that browser page open while it processes the queue. The original plugin uses browser-driven requests and provides **Pause**, **Resume**, a **Regeneration Log** and **Errors Encountered**. A different product's background-processing claim doesn't mean this queue will continue after you close its tab.

Read failures and skipped items before declaring the batch complete. Record affected attachment IDs and error messages, resolve a representative failure, then retry the affected group. A duration shown for your run doesn't predict how quickly another library or server will finish.

For a WooCommerce store, check whether a built-in regeneration job is already handling the change before launching a second full run. WooCommerce's [thumbnail-regeneration documentation](https://developer.woocommerce.com/docs/theming/theme-development/thumbnail-image-regeneration/?ref=wp-pluginskit.org) describes background processing for its classic theme and Customizer workflow. That specific workflow doesn't establish the same settings screen for every block theme.

For that WooCommerce workflow, look under **WooCommerce → Status → Logs** for `wc-background-regeneration` to see processed images and completion or cancellation. A job blocked by private-site protection needs an administrator's review; removing that protection isn't a prerequisite for this guide.

## Resolve the reported failure

- **The full-size file can't be found.** Check the reported uploads path, migration completeness and any media-offload configuration. Restore or make the correct source available before retrying. Regeneration can't reconstruct a missing original from nothing.
- **The image editor can't process this file type.** Ask the host to check WordPress's image-editor support for that format, including the available GD or Imagick support. A different format succeeding doesn't prove this file is supported.
- **The attachment metadata can't be loaded.** Keep the attachment ID and message for the administrator. Check the original file and the site's backup before repairing that attachment; don't delete the Media Library entry as a first response.
- **The queue can't fetch attachment IDs, or requests are denied.** Check the browser error and the site's authenticated REST API access. The plugin requires an authorized WordPress user. Have the administrator investigate a blocked request rather than turning off site protection globally.
- **A request times out or the server reports a resource error.** Pause the run, preserve its log, and ask the host to inspect that failure. Retry a smaller affected group after the cause is addressed instead of repeatedly restarting the entire library.
- **Files exist, but the page still looks wrong.** Check the requested size, saved post reference, theme styling and cache. Rebuilding the same files won't correct a page that keeps requesting the old URL.

Site icons are deliberately protected from regeneration because their thumbnails may have custom crops, and SVGs are excluded from the bulk regeneration list. Don't use the absence of those items as evidence that ordinary image attachments failed.

## Use WP-CLI when server access is available

A host or developer with existing WP-CLI access can use the [media regeneration command](https://developer.wordpress.org/cli/commands/media/regenerate/?ref=wp-pluginskit.org) without the plugin's browser queue. Start from the correct WordPress installation, keep the intended theme and size-defining plugins loaded, and retain the backup and one-image verification steps.

This documentation-based command example uses WP-CLI `2.12.0` and its bundled `media-command 2.2.2`. It targets one attachment and keeps the old thumbnail files. Check `wp cli version` and `wp help media regenerate` against your installed command before running it. Replace `123` with the actual attachment ID:

```
wp media regenerate 123 --skip-delete
```

The retention flag matters: `--skip-delete` defaults to false. Use `--image_size=large` when you deliberately want only that registered size, or `--only-missing` for a missing-size pass. On Multisite, confirm the target site with the appropriate `--url`; don't assume the command targets the site whose dashboard you last opened.

The `--update-attachment-refs` option is absent from the bundled `media-command 2.2.2` example above, but it is present in the separate stable `media-command 3.1.2` release. Check your installed command's help instead of assuming that a nightly build is required. Keep the backup and post-content checks in your plan before using any option that rewrites references.

Finish by checking representative existing pages, new image insertions and any failed attachments. Leave old files in place until a separate cleanup review establishes they're no longer needed. For another site-maintenance task, return to the [WordPress plugin catalog](https://wp-pluginskit.org/tag/plugins/).

Setup guide

## Set up Regenerate Thumbnails

1. **Prepare the site.** Use a maintained compatible WordPress and PHP environment, a restorable files-and-database backup, and staging for a substantial change. The plugin's historical minimum requirements aren't a reason to downgrade your site.
2. **Install the original plugin.** Open **Plugins → Add New Plugin**, find **Regenerate Thumbnails** by **Alex Mills (Viper007Bond)**, compare the official listing linked above, then choose **Install Now → Activate**.
3. **Inspect registered sizes.** Open **Tools → Regenerate Thumbnails**. Confirm the intended size is registered and the source file is available before processing anything.
4. **Verify one attachment.** Use its Media Library action, keep old-file deletion off, and choose Skip according to whether you're filling missing sizes or deliberately rebuilding an existing size.
5. **Check the page, then expand.** Verify the attachment and its actual use in a post or theme. Process selected, featured or all attachments only after that check, keep the queue page open, and review its errors.
6. **Keep cleanup separate.** Verify old post references before removing any old files. Version 3.1.6 doesn't automatically rewrite those references.