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 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 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.
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.

Regenerate one image first
- Open Media → Library and switch to list view. Find an image used on a page that needs the new size.
- Use its Regenerate Thumbnails row action. The attachment details and Edit Media screens also provide a single-image button.
- Review the registered sizes, filenames and file-existence information on the single-attachment screen.
- Keep Skip regenerating existing correctly sized thumbnails (faster) enabled for a missing-size repair. Keep old-file deletion disabled.
- 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.

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, 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 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 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 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.
Setup guide
Set up Regenerate Thumbnails
- 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.
- 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.
- Inspect registered sizes. Open Tools → Regenerate Thumbnails. Confirm the intended size is registered and the source file is available before processing anything.
- 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.
- 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.
- Keep cleanup separate. Verify old post references before removing any old files. Version 3.1.6 doesn't automatically rewrite those references.
