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.

wordpress-zero-thumbnails

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.

wordpress-insert-image

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

Image credit: gwydionwilliams

5 comments

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

    • 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? 

Comments are closed.

Sponsored Stories