How to Regenerate Thumbnails in WordPress (via Plugins and WP-CLI) (2023)

When you change WordPress themes, your existing images may not be the right size.

The solution for WordPress? Recreate thumbnails. This means resetting your image dimensions in WordPress core settings. It's also quick to do with a plugin.

In this post, we will dive deeper into the WordPress regenerate thumbnails solution and show you how to fix image issues using Regenerate Thumbnails WordPress plugin and manually using WP-CLI.

Let us begin!

Better look at themVideoversion?

What happens to your pictures

To figure out how to regenerate WordPress style thumbnails, it's important to first understand howImage and image sizes are treated.

WordPress has settings to automatically crop uploaded images. The settings can be found in the admin dashboardSettings > Media.

How to Regenerate Thumbnails in WordPress (via Plugins and WP-CLI) (1)

On themedia settingsPage has Thumbnails, Medium, and Large sizes. You can update the pixel count for each of them as you need.

But don't forget to clicksave Changesat the bottom of the page when you update the sizes.

Here are the standard size options:

  • thumbnails– 150 Pixel x 150 Pixel
  • Middle– 600 Pixel x 600 Pixel
  • Big– 1024 Pixel x 1024 Pixel

Remember thattheme you are usingcan have specific sizes for images that override the options onmedia settingsSide. If youSwitch to a new topic, the settings are updated to the sizes set by the new theme.

However, older images that you previously uploaded will not be affected.

This is where it gets a little sticky. You must be able to resize all of themImages you previously uploadedto match the newly set image sizes. Unfortunately there are no settings for this.

The solution is to do what is called "regenerate thumbnails".

How to resize thumbnails in WordPress? (3 methods)

Before exploring how to regenerate thumbnails in WordPress, it's important to note how to resize images in theWordPress-Dashboard.

Perhaps more importantly, these solutions don't necessarily resize your older images, so you still have to go into WordPress, regenerate thumbnails without the help of a plugin, or otherwise use a plugin.

If you want to resize a thumbnail or image, there are three options:

1. Resize images in your design

Since yourWordPress-ThemaYou can change the default image sizes, you can switch themes, or see if specific settings are availableAdjusting the image sizes.

Every theme is different, so be sure to read its documentation to see if there's a way to resize your theme without resizing itInstalling another themeall in all.

(Video) How to Regenerate Thumbnails in WordPress

Alternatively, you could choose to do socreate a child themeand change the image sizeswith PHP code.

2. Crop images in media library

Another option is to resize your images by cropping them in themedia library.

Step 1

Go toMedia > Libraryim WordPress-Admin-Dashboard.

How to Regenerate Thumbnails in WordPress (via Plugins and WP-CLI) (2)

Then click a listed image that you want to resize.

In the popover, click theEdit imageTaste.

How to Regenerate Thumbnails in WordPress (via Plugins and WP-CLI) (3)

step 2

After that, you have several options to edit the image.

You can click and drag your mouse over the image and release when you've selected the area you want to keep. Then you can clickharvest.

If you want to crop the image precisely, you can adjust the aspect ratio by typing in the ratio you want.

For example, you can use 1:1 to create a square, or you can use 4:3, 16:9, and any other ratio you want.

Then hold down the Shift key while dragging the mouse over the image. Release when you've selected the part of the image you want to keep. You can click and drag the selection so you can crop the exact part of the image you need.

You can also click and drag the corners of the selection if you don't get the image size you want at first.

Or you can make a selection and then enter the exact size of the image you want in pixelsselectionfield belowcrop imageOn the right side.

When you're done, clickharvest, then theSave on computerTaste.

step 3

If you prefer to resize the image instead of cropping it, you can scale the image in the settings on the right.

Enter the image size you want, then clickScale.

How to Regenerate Thumbnails in WordPress (via Plugins and WP-CLI) (4)

step 4

You can also choose which default image sizes to apply your changes toThumbnail Settings.

You can choose to have your customizations apply to:

  • All image sizes
  • thumbnails
  • All sizes except thumbnails

3. Change the image size in media settings

This is useful when you only need to edit an image or two but want to resize itall your pictures, the best way to do this is through the settings page.

(Video) How To Regenerate Thumbnails In Wordpress And Why

Step 1

Go to in your admin dashboardSettings > Media.

How to Regenerate Thumbnails in WordPress (via Plugins and WP-CLI) (5)

step 2

Enter the desired new dimensions for each thumbnail, medium, or large image. Enter the desired width and height for just one image type or all, as needed.

Sign up for the newsletter

Want to know how we increased our traffic by over 1000%?

Join over 20,000 others receiving our weekly WordPress insider tips newsletter!

subscribe now

If you want to resize thumbnails to a non-proportional size, enable thatCrop thumbnail to exact dimensionsfield under theThumbnail sizeSection.

step 3

Then you can check them outOrganize my uploads in month and year foldersbox if you don't want all your new pictures to be disorganized in theuploads folder.

When you are happy with your adjustments, clicksave Changesbutton further down the page.

How to regenerate thumbnails in WordPress

After changing these settings or the theme, you'll need to rebuild your thumbnails if the images on your public-facing site don't update, as mentioned earlier.

One of the easiest ways is to use the free WordPress pluginRebuild Thumbnailsto quickly fix your previously uploaded images.

This plugin is also compatible withWooCommerce.

Step 1

Begin,install and activatethe Regenerate thumbnails plugin.

Then goTools > Rebuild Thumbnails, WordPress image-related settings can be found here.

How to Regenerate Thumbnails in WordPress (via Plugins and WP-CLI) (6)

step 2

By default, theSkip regenerating existing correctly sized thumbnailsOption is activated. Uncheck this box to use the Rebuild Thumbnails plugin to adjust all your images.

However, leave it enabled if you want to conserve your server's resources.

(Video) How To Regenerate Thumbnails On WordPress 2020 - Regenerate Thumbnails WordPress Tutorial 2020

This is recommended if you have already updated some of your image sizes, e.g. B. about your design. You can also check the box under this optionDelete thumbnail files for old unregistered sizes. Choosefrees up disk space on your server.

Make sure you don't need these images before choosing this setting. If some of the images are used on your website and you select this option,They will be deletedand will no longer appear on your website. Visitors see a broken image.

You can see those tooUpdate post content to use the new sizesCheckbox you can select if you would like the images you are currently using in your posts to be updated.

step 3

After selecting the options you want, click the button toRebuild Thumbnails, medium, large and new file sizes included.

Then wait for the process to complete. Depending on how many images you have on your site, this may take a while, so grab a coffee or glass of water while you wait. For larger websites, it usually only takes a few minuteshigh performance server.

You will see the message "All done!". message when the process is complete.

That's it.

Struggling with downtime and WordPress issues? Kinsta is the hosting solution built for performance and security!Check out our plans

Your thumbnails and images should now regenerate.

How to force thumbnail regeneration

You can also use theForce regenerate thumbnails pluginas alternative. As the name suggests, thumbnail regeneration is driven by deleting old image sizes, forcing WordPress to regenerate the images. This plugin is also compatible with WooCommerce online stores.

Remember that at the time of publication this plugin has not been updated for the last 3 major versions, so use with caution. Be sure to test it in astagingorlocal test environmentbefore using it on your live website.

The reason you would need to use this plugin over the Regenerate Thumbnails plugin is that the latter only resizes the images, it doesn't delete the old image sizes unless you enable that option.

But if you have trouble with it, you can try Force Regenerate Thumbnails.

Step 1

To force WordPress to regenerate thumbnails, install and enable the Force Regenerate Thumbnails plugin.

Then goTools > Force thumbnail regenerationim WordPress-Admin-Dashboard.

How to Regenerate Thumbnails in WordPress (via Plugins and WP-CLI) (7)

step 2

To delete all images with the old settings and force WordPress to rebuild thumbnails, click theRegenerate all thumbnailsTaste.

(Video) The Only WP CLI Tutorial You’ll Ever Need

Wait a while and your images will be resized. If you have a smaller website this will take practically no time, but for larger websites with tons of images this can take a few minutes.

Regenerate specific images

There might be use cases where you don't need to regenerate all your thumbnails, just a few specific ones. If the Regenerate Thumbnails plugin is still installed, you can do that too. Here's how.

Step 1

Go toMedia > Library. In the grid view, click a specific image.

How to Regenerate Thumbnails in WordPress (via Plugins and WP-CLI) (8)

step 2

Then right click on theRebuild ThumbnailsTaste.

How to Regenerate Thumbnails in WordPress (via Plugins and WP-CLI) (9)

If you show themmedia libraryIn the list view, click theRebuild ThumbnailsLink after hovering over the image you want to regenerate.

How to Regenerate Thumbnails in WordPress (via Plugins and WP-CLI) (10)

Recreate thumbnails with WP-CLI

If you'd rather not use a plugin, there is another solution for WordPress: recreate thumbnails without a plugin by doing it manually withWP-CLI.

Remember that you must have access to thecommand line on your serverfor this possibility.

Regenerating thumbnails with WP-CLI is a far better option than using a WordPress plugin as it is faster, has no HTTP restrictions andtime out.

The basic command to regenerate thumbnails is below:

regenerate wp media

Once entered, confirm that you want to regenerate all thumbnails by pressing the letter "y" for "yes" on your keyboard.

Regenerate all thumbnails with WP-CLI

After launching the command line, you can type the followingCommand for WordPressRegenerate thumbnails without plugin in seconds:

regenerate wp media - yes

This command will regenerate thumbnails without manual confirmation.

Rebuild specific thumbnails with WP-CLI

You also have the option to regenerate specific thumbnails using WP-CLI and the IDs of the images you want to update.

Here is the command to do this:

wp media regenerate 12 34 567

Just make sure you replace the three example IDs - "12", "34" and "567" - with the actual IDs of the specific images you want to regenerate.

You can specify as many IDs as you like. Make sure you separate each one with a space.


It can be frustrating to seeyour picturesare not displayed correctly, thoughThey change subjects.

Fortunately, there are two quick fixes for WordPress. With the help of the Regenerate Thumbnails plugin, this is possible with just a few clicks. Or you could use WP-CLI to get done in less time than it takes to brew a coffee.

(Video) wp-cli - WordPress from the command line

Save time and costs and maximize site performance with:

  • Immediate help from WordPress hosting experts 24/7.
  • Cloudflare Enterprise-Integration.
  • Global audience reach with 35 data centers worldwide.
  • Optimize with our built-in application performance monitoring.

All this and much more in a plan with no long-term contracts, supported migrations and a 30-day money-back guarantee.Check out our plansortalk to salesto find the plan that suits you.


How do I use regenerate thumbnails plugin? ›

Regenerate Thumbnails
  1. Go to Media > Library.
  2. Click on List View icon to display files in a list.
  3. Click on Regenerate Thumbnails on the image you want to resize. ...
  4. Pressing Regenerate Thumbnails starts generating new images sizes defined by your theme or in Settings > Media.

What does force regenerate thumbnails do? ›

You can also use the Force Regenerate Thumbnails plugin as an alternative. As the name infers, it pushes the regeneration of thumbnails by deleting old image sizes so WordPress is forced to regenerate the images. This plugin is also compatible with WooCommerce online stores.

How do I rebuild my thumbnail? ›

To Rebuild Thumbnails:
  1. In Manage mode, do one of the following: Select one or more thumbnails in the File List pane. Select a folder in the Folders pane.
  2. Click Tools | Metadata | Rebuild Thumbnails and Metadata.

How do I restore a thumbnail file? ›

Check File Explorer Options

Go to View by and select Small icons or Large icons. Click File Explorer Options. Open the View tab. From Files and Folders, uncheck the Always show icons, never thumbnails option.

How do you use regenerate? ›

How To Use. Use REGENERATE Enamel Science™ Advanced Toothpaste twice daily, in place of your regular toothpaste. Use with REGENERATE™ Advanced Enamel Serum to boost effectiveness by 43%². REGENERATE Enamel Science™ toothpaste starts working immediately, from the first use.

What happens if thumbnails are deleted? ›

Thumbnails folder and delete it from the device, which will remove it and any images within it and may save a significant amount of space from the device. However, in doing this there may be issues, including that any current images may no longer display as thumbnails in the Photos gallery.

How do I fix missing post thumbnail issues in WordPress? ›

If you do not see a featured image meta box in your post edit area, then click on Screen Options button on the top right corner of the screen and check the featured image check box. Now, you can click on 'Set Featured Image' link to upload your post thumbnail.

How to recreate the thumbnail cache using command prompt? ›

Press the Windows key + R and type in ie4uinit.exe -show followed by enter for Windows 10. For Windows 8.1, 7, Vista or XP type follow the same steps but instead type ie4uinit.exe -ClearIconCache. Now open Windows Explorer, File Explorer, or wherever you aren't seeing your icons or thumbnails and see if it worked.

Where are thumbnail files stored? ›

Centralized thumbnail cache

db files. The cache is stored at %userprofile%\AppData\Local\Microsoft\Windows\Explorer as a number of files with the label thumbcache_xxx. db (numbered by size); as well as an index used to find thumbnails in each sized database.

What is thumbnail generator? ›

The thumbnail generator will scan through your images folder and create thumbnails based on your specifications. This tool should be used after uploading images via FTP, after changing the default sizes of your images, and just in case you ever see images not loading correctly.

How can I regenerate faster? ›

Trainer-Approved Ways to Enhance Your Recovery
  1. Drink plenty of water. Drink, drink, drink! ...
  2. Regenerate faster by getting sufficient sleep. After getting enough water, getting enough sleep is priority number two for fast regeneration. ...
  3. High protein and high carbohydrate post-workout food. ...
  4. Active recovery.
25 Jul 2022

What is the formula for regeneration? ›

For the idealized regenerative Brayton cycle, the efficiency relation is(102)ηth,Brayton,regen=1−(T1T3)rp(k−1)/kwhere T1 and T3 are the temperatures at the inlets of the compressor and the turbine, respectively.

When can I regenerate? ›

At any time you can regenerate a creature with an appropriate spell or effect. The only condition is that the regeneration has to happen before the destruction effect. You can regenerate a creature as often as you like, anytime.

Is it safe to delete thumbnail cache? ›

Many times deleting these files may not be safe. All your photos will be compressed and stored as Jpg files in this file. Thumbnail will provide a good service to smooth opening and browsing of images that are stored. If you remove this file your gallery app will become slow.

What is thumbnail in disk cleanup? ›

Thumbnails: Windows creates thumbnail images for pictures, videos, and document files and stores them on your hard drive so they can be displayed quickly when you view that folder again. This option will delete those cached thumbnails.

Why are my thumbnails not showing up in WordPress? ›

Fix #1: Make sure your WordPress site is up to date

You can also go to the Plugins and Themes pages. Back up your WordPress site, then update to the latest version of WordPress. Update your theme and plugins one by one. Refresh the media library after each update to see if the issue persists or if new issues arise.

How do I enable thumbnails in WordPress? ›

Step 1: Go to the plugin area of your WordPress admin panel. Step 2: Search for a new plugin called, “Magic Post Thumbnail.” Install and activate it. Step 3: A new function will be added to the settings area of WordPress called, “Magic Post Thumbnail.” Click this setting.

What thumbnail gets most clicks? ›

Something to connect with emotionally

Video marketing statistics show that videos with emotional thumbnails get more clicks than those without. When creating your video thumbnails, you should give them a personal touch to capture your audience's attention.

How much do thumbnail makers get paid? ›

Thumbnail Creator Salaries
Job TitleSalary
Valnet Inc. Thumbnail Creator salaries - 1 salaries reported$11,694/mo
UPS Thumbnail Creator salaries - 1 salaries reported$125,929/yr
Self Opportunity Thumbnail Creator salaries - 1 salaries reported$49/hr
TigerDirect Thumbnail Creator salaries - 1 salaries reported$109,294/yr

Where are thumbnails stored? ›

THUMBNAILS extension is a hidden folder stored in the sdcard/​DCIM directory on select Android devices. It contains one or more . THUMBDATA files that store properties about thumbnail images indexed by the Gallery app to load images quicker. THUMBNAILS folders typically store .

Why after deleting .thumbnails my space is not freed? ›

After deleting your thumbnail your phone again produce those thumbnails. So as a result space don't get freed.

Do thumbnails increase views? ›

A video thumbnail acts no less than how a book cover works for a book. It advertises your video to potential viewers. An appealing, eye-catching thumbnail increases the probability of people clicking on your video.

How do I enable thumbnail icons? ›

  1. Click the Visual Effects tab.
  2. Check the Show thumbnails instead of icons option.
17 May 2022


1. Wordpress: wp-cli regenerate media is not working for custom sizes
(Roel Van de Paar)
2. Administrating WordPress with the WP CLI
(John Perry)
3. Wordpress WP CLI Tutorials for Beginners #11 Manage Plugins (List, Get, Path) - WP CLI Command
(Online Web Tutor)
4. Wordpress WP CLI Tutorials for Beginners #3 Generates Configuration file for Wordpress Setup via CLI
(Online Web Tutor)
5. Wordpress: How to Delete All regenerated thumbnails but keep the original ones?
(Roel Van de Paar)
6. Marcos Schratzenstaller: WP-CLI for beginners
Top Articles
Latest Posts
Article information

Author: Prof. An Powlowski

Last Updated: 02/16/2023

Views: 6270

Rating: 4.3 / 5 (64 voted)

Reviews: 95% of readers found this page helpful

Author information

Name: Prof. An Powlowski

Birthday: 1992-09-29

Address: Apt. 994 8891 Orval Hill, Brittnyburgh, AZ 41023-0398

Phone: +26417467956738

Job: District Marketing Strategist

Hobby: Embroidery, Bodybuilding, Motor sports, Amateur radio, Wood carving, Whittling, Air sports

Introduction: My name is Prof. An Powlowski, I am a charming, helpful, attractive, good, graceful, thoughtful, vast person who loves writing and wants to share my knowledge and understanding with you.