How To Stop WordPress From Creating New Image Sizes

WordPress is becoming very popular day by day. WordPress provides a very user-friendly system that allows beginners to build websites very easily.

Even though WordPress is very user-friendly but it does have some problems. One of the biggest problems of using WordPress is managing the files. WordPress creates many files while operating.

Every time you upload a picture to your website, it creates some resized pictures to feed the header, featured image, homepage thumb and recommended stories. Besides that, it even creates three resized photos when you upload a picture.

As a result, uploading a single image may generate more resized images. It may sound innocent, but it will make a huge number of images on your server. Ever wondered how to stop the WordPress theme from creating regenerated images in different sizes?

The matter of great sorrow is that these images will become obsolete once you use a different theme. A new theme will require different types of image resolutions which the previously generated images won’t match. This will cause several numbers of unused and unnecessary files on the server.

Even if you generate new images for the site then you will see a huge number of obsoleted images on your server. You can always manually remove the unnecessary image files but that’s a pain that we don’t want to take.


Prevent WordPress from Creating Auto Resized Images

Stop WordPress From Auto resizing images in the media option. By default WordPress creates three resize images. They are Thumbnail size, Medium size, Large size. I always stop WordPress from resizing in these sizes. Most of the times these are not required. Your WordPress theme will automatically resize the images it requires. In order to prevent WordPress from creating these three sizes images you can follow the below steps.

  1. Go to Settings
  2. Then media
  3. You will see three options as Thumbnail size, Medium size, Large size
  4. You need to turn all the values to “zero” like the image belowPrevent WordPress from creating unnecessary image files
  5. Turn all the values like the image above and WordPress will stop resizing the images into these three sizes

How To Stop WordPress From Creating New Image Sizes

All the WordPress themes use custom image sizes for header, slider, featured images and other blocks. In order to provide the fast-loading, these images come very handy. However, if you really want to stop WordPress these types of images to generate then you can do that too.

Important Note: 

Preventing WordPress from creating these images may cause some trouble. It may cause the thumb, slider or other blocks to perform differently. You need to double-check before proceeding.

In order to see how many images are being generated by your current WordPress account, you need to go the Cpanel first. Then open the file manager and select your site.

Now go to the Wp-Content > Upload folder. Then choose the current month’s number. For December it is 12. After that, you will be able to see how many sizes of pictures have been resized like the picture below.

Resized images by WordPress

You will see that the theme itself generated four different sizes of the image of the original image. It can be stopped but the site’s thumb may not work properly.

In order to prevent the WordPress theme to generate custom sizes images for itself, we need to go to the functions.php file. It can be accessed via the WordPress theme editor or from the Cpanel also. We are assuming that you already know that.

After that, search this quoted like : add_image_size function and see if any result occurs. It will look something like below:

add_image_size( ‘featured-blog-large’, 750, 350, true )

how to stop wordpress from creating new image sizes
We can see that the theme itself requires 4 resized images for its different header, featured blocks. We can prevent the Theme from creating any. In order to prevent WordPress to create a new image file, you need to delete these lines. For example, if we delete these four lines, it will not generate new image sizes.

There are another set_post_thumbnail_size function. Search for it and delete it if it exists. Note that, doing this may cause new posts to have irregular thumb pictures. If you can’t find these codes in the theme function file then you need to check them on other files.

This is how to stop WordPress from creating new image sizes. If you are about to change your WordPress theme in the coming days this may be very handy until you made the changes. If you face any type of problem while removing unnecessary image files; you can always post a comment in the comment section below. Happy blogging !!!


Afsar is a passionate and dedicated individual who is currently working on a WordPress news site. With extensive experience in content creation and digital media, Afsar is responsible for delivering engaging and informative articles to the site's audience. Utilizing the latest tools and technologies, Afsar is constantly striving to improve the user experience and drive traffic to the site. When not working, Afsar can be found reading the latest news and staying up to date on industry trends, always looking for ways to bring fresh and exciting content to the site.

Click Here to Leave a Comment Below 3 comments
Motivational Quotes - December 23, 2015

Life saving post, I was disgusted with huge amount of auto generated images. God blase you my son.

    Afsar - December 23, 2015

    I’m glad I was able to help 🙂

Bj - November 27, 2017

“In order to prevent the WordPress to create new image file you need to delete these lines. ”

All well and good until you get a theme upgrade.
So how do you prevent it using a child theme?


Leave a Reply:

By continuing (scrolling) to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.