Snippet: How to Prevent WordPress From Creating Thumbnail Images

By default, when you upload an image in WordPress, it will generate several thumbnails (large, medium and small) from your images. If you have no uses for these thumbnails, they will become a liability to your site, take up valuable database and storage space. If you have a thousand posts in your blog and each post contains at least two images, then you will end up with at least 6000 useless thumbnail images.

A good thing is, you can turn the automatic thumbnail feature off and the step is very easy. No hacking/modification of code or plugins required.

In your WordPress dashboard, go to Settings -> Media. Under the Images Sizes section, change all the value to zero.


Save the changes.

That’s it.

Now whenever you upload an image, you will see that the “Thumbnail”, “Medium” and “Large” options are greyed out under the Size section.


You won’t see anymore thumbnail images in your WordPress database from now on.

Image credit: gwydionwilliams

Building Interactive Longform Storytelling Contents on WordPress

Building Interactive Longform Storytelling Contents on WordPress

This ebook is all about interactive longform storytelling: what it is, why you need to embrace it and its benefits, how to create one, and the available tools to help you create your first longform content.

Get it now! More ebooks »


  1. That was an easy way to prevent thumbnail creation.. I was searching for a plugin! Thanks

  2. I am searching for a way to restrict thumbnails, I have doubt.. does the WordPress system display gallery thumbnails if you block this one..??

    1. I don’t understand you. WordPress doesn’t show thumbnails unless you specifically code it in your theme to display it, so why are you looking for ways to restrict thumbnails? 

  3. Doesn’t work in 3.4

    1. It still works for me in 3.4

Comments are closed.