{"id":1504,"date":"2025-02-06T11:35:59","date_gmt":"2025-02-06T11:35:59","guid":{"rendered":"https:\/\/thumbpress.co\/?p=1504"},"modified":"2026-05-18T04:00:07","modified_gmt":"2026-05-18T04:00:07","slug":"how-to-regenerate-thumbnails-in-wordpress","status":"publish","type":"post","link":"https:\/\/thumbpress.co\/blog\/how-to-regenerate-thumbnails-in-wordpress\/","title":{"rendered":"How to Regenerate Thumbnails In WordPress: Step-by-step"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Have you ever switched your WordPress theme or adjusted image sizes, only to find that your thumbnails look stretched, cropped incorrectly, or downright messy? WordPress doesn\u2019t automatically regenerate thumbnails when changes are made, which can leave your media library in disarray.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This is a common issue that can make your site look unpolished and unprofessional. Regenerating thumbnails in WordPress allows you to refresh your image previews, ensuring they match your latest theme settings and display correctly across your website.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In this guide, we\u2019ll walk you through the process step by step, whether you prefer using a plugin or doing it manually. Let\u2019s get those images looking crisp and clean in no time!<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" style=\"font-size:28px\" id=\"codex-heading-1\">How Images Work in WordPress When You Upload<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">When you upload an image to WordPress, it doesn\u2019t just store the original file, it automatically creates multiple resized versions based on your theme\u2019s settings. These different sizes help ensure your images display correctly across various areas of your site, such as thumbnails, featured images, and blog post content.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">By default, WordPress generates at least three additional sizes for every uploaded image:<\/p>\n\n\n\n<div class=\"wp-block-group has-luminous-vivid-amber-background-color has-background is-layout-constrained wp-container-core-group-is-layout-d5417305 wp-block-group-is-layout-constrained\" style=\"padding-top:var(--wp--preset--spacing--70);padding-right:var(--wp--preset--spacing--60);padding-bottom:var(--wp--preset--spacing--70);padding-left:var(--wp--preset--spacing--60)\">\n<p class=\"has-black-color has-text-color has-link-color wp-elements-cbd337df13ee4c69834b59f75574efb2 wp-block-paragraph\">Thumbnail (150&#215;150 pixels) \u2013 Used in galleries and widgets.<\/p>\n\n\n\n<p class=\"has-black-color has-text-color has-link-color wp-elements-52cf126cc6132bfb595246c80c20b94d wp-block-paragraph\">Medium (typically 300&#215;300 pixels) \u2013 Ideal for content areas.<\/p>\n\n\n\n<p class=\"has-black-color has-text-color has-link-color wp-elements-9d20c957b714bd912fbfd52d39ceff96 wp-block-paragraph\">Large (typically 1024&#215;1024 pixels) \u2013 Used for full-width images.<\/p>\n<\/div>\n\n\n\n<p class=\"wp-block-paragraph\">Many themes and plugins add their own custom image sizes, further expanding the number of versions stored. If you change your theme or modify image size settings, WordPress does not regenerate your existing images automatically, which can result in distorted or misaligned images.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">That\u2019s where you need to regenerate thumbnails in your WordPress site. It updates your website images to fit your latest settings without requiring you to re-upload them manually.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" style=\"font-size:28px\" id=\"codex-heading-2\">How to Regenerate Thumbnails in WordPress: (2 methods)<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Generating new thumbnails for your WordPress site is super easy. You can regenerate thumbnails in your WordPress using the following methods.:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>1. WordPress Plugin<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>2. WP CLI<\/strong><\/p>\n\n\n\n<h3 class=\"wp-block-heading\" style=\"font-size:26px\" id=\"codex-heading-3\">1. Regenerate Thumbnails with WordPress Plugin<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">First, we will go through one of the easiest methods using the free WordPress plugin ThumbPress.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">With this plugin, you can do many more things. Let\u2019s start with how you can regenerate thumbnails in your WordPress.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" style=\"font-size:24px\">Step 1: Install the plugin<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">Go to your WordPress <strong>dashboard &gt;&gt; Plugins &gt;&gt; Add New<\/strong> and search for ThumbPress. Click the install button and activate it.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1294\" height=\"645\" src=\"https:\/\/thumbpress.co\/wp-content\/uploads\/2024\/08\/ThumbPress-install.webp\" alt=\"\" class=\"wp-image-35139\" srcset=\"https:\/\/thumbpress.co\/blog\/wp-content\/uploads\/2024\/08\/ThumbPress-install.webp 1294w, https:\/\/thumbpress.co\/blog\/wp-content\/uploads\/2024\/08\/ThumbPress-install-300x150.webp 300w, https:\/\/thumbpress.co\/blog\/wp-content\/uploads\/2024\/08\/ThumbPress-install-1024x510.webp 1024w, https:\/\/thumbpress.co\/blog\/wp-content\/uploads\/2024\/08\/ThumbPress-install-768x383.webp 768w\" sizes=\"auto, (max-width: 1294px) 100vw, 1294px\" \/><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\" style=\"font-size:24px\">Step 2: Enable the regenerate thumbnail settings<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">When your plugin is activated, navigate to <strong>ThumbPress &gt;&gt; Thumbnails<\/strong>. In here, you can put the number of thumbnails you want to generate.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Now, hit the <strong>Regenerate Now<\/strong>\u00a0button.\u00a0Converting images might take some time and you cannot close that tab until it\u2019s complete. To avoid this inconvenience you can enable\u00a0<strong>Regenerate in Background<\/strong>.\u00a0<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1100\" height=\"744\" src=\"https:\/\/thumbpress.co\/wp-content\/uploads\/2024\/08\/regenerate-thumbnail.webp\" alt=\"\" class=\"wp-image-35125\" srcset=\"https:\/\/thumbpress.co\/blog\/wp-content\/uploads\/2024\/08\/regenerate-thumbnail.webp 1100w, https:\/\/thumbpress.co\/blog\/wp-content\/uploads\/2024\/08\/regenerate-thumbnail-300x203.webp 300w, https:\/\/thumbpress.co\/blog\/wp-content\/uploads\/2024\/08\/regenerate-thumbnail-1024x693.webp 1024w, https:\/\/thumbpress.co\/blog\/wp-content\/uploads\/2024\/08\/regenerate-thumbnail-768x519.webp 768w\" sizes=\"auto, (max-width: 1100px) 100vw, 1100px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" style=\"font-size:26px\" id=\"codex-heading-4\">2. Regenerate Thumbnails Using WP CLI<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">If you prefer a faster, more efficient way to regenerate thumbnails without relying on a plugin, WP CLI (WordPress Command Line Interface) Is your best option. This method is especially useful for developers, site administrators, or anyone managing large websites with numerous images. No more waiting, let stats with the steps:<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" style=\"font-size:24px\">Step 1: Access your server via SSH<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">If you want to use WP CLI, you need SSH access to your WordPress site using an SSH client. Download the SSH client <a href=\"https:\/\/www.putty.org\/\" target=\"_blank\" rel=\"noreferrer noopener\">Putty<\/a> (popular for Windows) or the <a href=\"https:\/\/apps.microsoft.com\/detail\/9n0dx20hk701?hl=en-US&amp;gl=US\" target=\"_blank\" rel=\"noreferrer noopener\">Terminal<\/a> (Mac\/Linux). I am using Putty for giving commands here.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Before connecting to your server, ensure you have your SSH login credentials, which include:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Server IP address<\/li>\n\n\n\n<li>SSH port (default: 22)<\/li>\n\n\n\n<li>Username<\/li>\n\n\n\n<li>Password or private key<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Now, open Putty and enter your server&#8217;s IP in the Host Name field under the <strong>Session category<\/strong>. You also need to set the port to 22 (or your server\u2019s port), select <strong>SSH<\/strong>, name the session under <strong>Saved Sessions<\/strong>, and click Save for future access.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"677\" height=\"676\" src=\"https:\/\/thumbpress.co\/wp-content\/uploads\/2025\/02\/putty-configuration.png\" alt=\"Putty-configuration\" class=\"wp-image-1514\" srcset=\"https:\/\/thumbpress.co\/blog\/wp-content\/uploads\/2025\/02\/putty-configuration.png 677w, https:\/\/thumbpress.co\/blog\/wp-content\/uploads\/2025\/02\/putty-configuration-300x300.png 300w, https:\/\/thumbpress.co\/blog\/wp-content\/uploads\/2025\/02\/putty-configuration-150x150.png 150w\" sizes=\"auto, (max-width: 677px) 100vw, 677px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">If you are using an SSH key for extra layer security, go to <strong>SSH &gt;&gt; Auth &gt;&gt; Credentials<\/strong>. Provide the necessary field details and save the changes.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"444\" height=\"437\" src=\"https:\/\/thumbpress.co\/wp-content\/uploads\/2025\/02\/putty-ssh-key-1.png\" alt=\"\" class=\"wp-image-1519\" style=\"width:511px;height:auto\" srcset=\"https:\/\/thumbpress.co\/blog\/wp-content\/uploads\/2025\/02\/putty-ssh-key-1.png 444w, https:\/\/thumbpress.co\/blog\/wp-content\/uploads\/2025\/02\/putty-ssh-key-1-300x295.png 300w\" sizes=\"auto, (max-width: 444px) 100vw, 444px\" \/><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\" style=\"font-size:24px\">Step 2: Navigate to your WordPress directory<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">Once logged in, navigate to your WordPress installation folder using the cd command. For example:<\/p>\n\n\n\n<pre class=\"wp-block-code has-black-color has-text-color has-link-color wp-elements-705b08953c5adb10c38997c4ad55ea44\"><code><strong>cd \/var\/www\/html<\/strong><\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">Step 3: Run the thumbnail regeneration command<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">Use the following WP-CLI command to regenerate thumbnails for all images in your media library:<\/p>\n\n\n\n<pre class=\"wp-block-code has-black-color has-text-color has-link-color wp-elements-8e71bb3352883f1392e114cd92ebb729\"><code><strong>wp media regenerate --yes<\/strong><\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The &#8211;yes flag skips confirmation prompts, allowing the process to run automatically. If you want to regenerate thumbnails for a specific image, use:<\/p>\n\n\n\n<pre class=\"wp-block-code has-black-color has-text-color has-link-color wp-elements-c47732b1f784361c969eb939984f64fb\"><code><strong>wp media regenerate 123<\/strong><\/code><\/pre>\n\n\n\n<p class=\"has-ast-global-color-0-color has-text-color has-link-color wp-elements-11bc90b9e9f8185abe898e40cd792885 wp-block-paragraph\"><strong>N, B. (Replace 123 with the actual image ID.)<\/strong><\/p>\n\n\n\n<h4 class=\"wp-block-heading\" style=\"font-size:24px\">Step 4: Wait for the process to complete<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">WP-CLI will go through all images and regenerate thumbnails based on your current theme\u2019s settings. The time required depends on the number of images in your library.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\" style=\"font-size:24px\">Step 5: Verify the changes<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">Once the process is complete, visit your website and check your images to ensure they are correctly resized.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" style=\"font-size:26px\" id=\"codex-heading-5\">Alternative Manual Method (Re-uploading Images)<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">If you don\u2019t want to use plugins or WP-CLI, another way is to manually re-upload images:<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">1. Delete and re-upload the affected images from the WordPress Media Library.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">2. WordPress will generate new thumbnails based on your latest settings.<\/p>\n\n\n\n<p class=\"has-ast-global-color-0-color has-text-color has-link-color wp-elements-d852a0e5fb93ba0efd6686467c8db937 wp-block-paragraph\"><strong>N.B., This method is not efficient for large websites but works for a few images.<\/strong><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"codex-heading-6\">Final Words<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Regenerating thumbnails in WordPress is essential to maintaining a visually appealing and professional-looking website, especially after changing themes or modifying image sizes.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Whether you use a plugin like ThumbPress for a quick and easy solution or opt for WP-CLI for a more advanced, command-line approach, both methods ensure that your images align perfectly with your latest settings.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">By following this step-by-step guide, you can efficiently regenerate thumbnails and avoid distorted or improperly cropped images. Keeping your media library updated enhances your site&#8217;s aesthetics and performance, as well as user experience.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Now that you know how to regenerate thumbnails, your WordPress images will always look clean, and well-optimized!<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" style=\"font-size:28px\" id=\"codex-heading-7\">Frequently Asked Questions (FAQs)<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\" style=\"font-size:26px\" id=\"codex-heading-8\">Q. How do I regenerate missing thumbnails in WordPress?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">With ThumbPress regenerate thumbnails you can regenerate thumbnails in minutes. Here is how:&nbsp;<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li style=\"font-size:17px\">Install and activate ThumbPress in your website.<\/li>\n\n\n\n<li style=\"font-size:17px\">Navigate to <strong>ThumbPress &gt;&gt; Modules <\/strong>and activate the <strong>Regenerate Thumbnails<\/strong> option.<\/li>\n\n\n\n<li style=\"font-size:17px\">After saving this changes, head to the <strong>Regenerate Thumbnails<\/strong> tab.<\/li>\n\n\n\n<li style=\"font-size:17px\">Provide the number of images you want to regenerate and click on the button.<\/li>\n\n\n\n<li style=\"font-size:17px\">Finally, it will generate the missing thumbnails on your website.<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\" style=\"font-size:26px\" id=\"codex-heading-9\">Q. Is there any way to regenerate thumbnails in WordPress without plugins?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Yes, you can regenerate thumbnails in WordPress without using plugins by using WP-CLI (WordPress Command Line Interface). This method is efficient, especially for large websites, as it doesn&#8217;t require installing additional plugins<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" style=\"font-size:26px\" id=\"codex-heading-10\">Q. Can I regenerate thumbnails with a lot of images?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Yes, using <a href=\"https:\/\/thumbpress.co\" target=\"_blank\" rel=\"noreferrer noopener\">ThumbPress<\/a> you can easily regenerate thumbnails with a lot of images.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Have you ever switched your WordPress theme or adjusted image sizes, only to find that your thumbnails look stretched, cropped [&hellip;]<\/p>\n","protected":false},"author":6,"featured_media":1505,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[20],"tags":[7],"class_list":["post-1504","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-regenerate-thumbnails","tag-thumbpress"],"_links":{"self":[{"href":"https:\/\/thumbpress.co\/blog\/wp-json\/wp\/v2\/posts\/1504","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/thumbpress.co\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/thumbpress.co\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/thumbpress.co\/blog\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/thumbpress.co\/blog\/wp-json\/wp\/v2\/comments?post=1504"}],"version-history":[{"count":14,"href":"https:\/\/thumbpress.co\/blog\/wp-json\/wp\/v2\/posts\/1504\/revisions"}],"predecessor-version":[{"id":35159,"href":"https:\/\/thumbpress.co\/blog\/wp-json\/wp\/v2\/posts\/1504\/revisions\/35159"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/thumbpress.co\/blog\/wp-json\/wp\/v2\/media\/1505"}],"wp:attachment":[{"href":"https:\/\/thumbpress.co\/blog\/wp-json\/wp\/v2\/media?parent=1504"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/thumbpress.co\/blog\/wp-json\/wp\/v2\/categories?post=1504"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/thumbpress.co\/blog\/wp-json\/wp\/v2\/tags?post=1504"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}