Deleting unused thumbnails and disabling auto-image creation in WordPress will save you a lot of space. Imagine you upload an image of only 50 KB to WordPress , it will generate you about 10 thumbnail images with many sizes, some of which are larger than the original image. On average, you can lose up to 500KB in hosting for an original photo of only 50KB. And if you have 1000 photos, your hosting will cost around 488MB. So let’s see now how to delete unused thumbnail images and turn off the feature of auto image creation in WordPress below to save space for you.
Delete unused thumbnails in WordPress
Access to install the new Plugin on your WordPress website. Find and install the reGenerate Thumbnails Advanced plugin . This plugin will help us clean up, wipe the baby will not use the thumbnail image on WordPress, and also recreates the thumbnail image for the image being used as avatar Post (Featured image).
Delete all unused thumbnails in WordPress
Post on Tools section will see the Regenerate Thumbnails . Click and follow the instructions to delete your child thumbnails in WordPress.
- Right: You click Advanced options , check Delete Unselected Thumbnails line .
- Left: You uncheck all , so that we can delete all thumbnails of the images that are not used as article avatars. Later we will re-create thumbnails for the images to be used as post featured images later, don’t worry.
Below if you use JPEG images, please set the quality to 100, if you often use PNG then do not care. Then click SAVE SETTINGS and then click the REGENERATE button .
Wait about 5 minutes to finish, I see this plugin working quite quickly. After deleting all thumbnails in WordPress, we will now re-create thumbnails for the images that are currently selected as the featured post image.
Only recreate the thumbnail for the image being used as a Featured image
To recreate thumbnails for the images that are selected as featured images, reinstall the following.
- Left: Check the Regenerate only Featured images section (recreated only for the featured image of the article). The sections below you unchecked all.
- Right: You just tick the sizes that your website is using as the article avatar. If you don’t know what size is being used on your website then see the instructions below after this picture.
After installation is complete, click SAVE SETTINGS then click REGENERATE button .
To know which thumbnail sizes your website is using, right click on the avatar of that article and choose Check (applies to Chrome / CocCoc, other browsers like FireFox may be similar). Browse to the <img> element and see what size the image link is on the extension . For example, in the image below, the end of the image link contains “350×250”, so you will check the size 350×250 in the Regenerate Thumbnails.
If the article widget website has avatars on the sidebar then you should also check what thumbnail size they are using to check the checkbox in the Regenerate Thumbnails.
Turn off self-generating multi-sized thumbnail images in WordPress
We have just cleaned up, deleted thumbnail images that are not in use at the moment. So what about the future. We can prevent child image creation from WordPress in two ways below.
Disable WordPress default child image sizes
By default, WordPress will automatically generate 4 more sub-sizes for you, Thumbnail, Medium, Medium_Large and Large. Rarely do we use these dimensions.
You go to Settings, select Library. After that, you change all the size to 0 and then click Save changes . In the future, when you upload new images, WordPress will no longer create these child images.
But this has just turned off image creation for the default WordPress sizes. And your interface is what needs to use thumbnails to display articles. The WordPress theme creates a lot of other sub image sizes. Please follow the instructions below to turn them off.
Turn off multiple custom image sizes in WordPress
Go to install a new plugin on your website, find and install the Stop Generating Unnecessary Thumbnails plugin . This plugin will turn off the ability to manually generate thumbnail images on your entire website (default WordPress and theme).
After installing the plugin, on your admin menu you will see Image Sizes . Click on it and go like this, pretty simple as well.
- Checked: The size will be disabled, preventing child image creation from uploading new photos.
- Unchecked: That size will automatically generate a child image when you post a new image to WordPress.
There is a little tip I want to share for you to use it effectively. That is before you upload the normal image (image not used as Featured image) up, you tick All (All) and then click the Save Settings button below.
Before you upload an image to a Featured image , go to Image Sizes and uncheck the sizes of your website as a thumbnail , and then click Save settings. Let WordPress generate child thumbnails of the sizes to use with this image.
Also note that you should not always remove child thumbnails for images that are being used as post featured images. Because they will make the pages with thumbnail images of posts small but use the original image file, many times larger. Make your website more slow. So it’s best to be a little more diligent, following Lucid Gen ‘s instructions. Love forever!