How To Stop WordPress From Creating Multiple Images?
December 30th, 2016 | by Ravi Chahar || 7 Comments |
You would be amazed to know that WordPress generates many sizes for a single image. Whenever you add any thumbnail image, two more images get generated with it.
Does it affect your website? The answer is yes. It’s because the storage provided by the web hosting is limited and if you would get two images for free then the storage would get consumed more.
It’s your duty to stop WordPress from creating multiple images.
If you don’t then it will soon affect the page loading time of your website. It’s because the size of your whole website will increase.
How To Find All The Images For Your Website?
One of the simple solutions can be done from the WordPress admin panel.
There are a few options in the media settings from where you can control the output of the images.
But before that, let me provide you a guide to check the availability of the multiple images in your WordPress directory.
All the uploads get saved in one wp-content folder of WordPress.
Follow the steps.
Step 1:- Login to cPanel and open the file manager.
Step 2:- Search for wp-content>>uploads. You will see the upload folders.
If you have set it to save monthly then there would be different folders for each month. Open any of them and check the images.
If you would find three or more copies of the same image then it means WordPress is generating many image sizes for your each image.
How Would You Prevent WordPress From Generating Multiple Images?
There are only two steps.
Step 1 :- Login to your WordPress admin panel and go to settings>>media.
Step 2 :- Set the value to zero for all the three types of images.
Save and you’re done.
NOTE :- The image size is used by WordPress for its gallery so the new gallery won’t be the same as before.
Though this is not the permanent solution. If your WordPress theme consists the code to set the image size then you have to remove it too.
What’s The Code To Find In Your WordPress Theme?
Most of the time, the code may present in the theme’s functions.php file.
You can open that file from your WordPress admin panel only.
Just go to appearance>>editor>>functions.php.
Look for the two types of codes.
If you find any code similar to that then remove it and your theme will stop generating the images of this size.
There is another code which may present.
If you don’t want your theme to generate the image of this size then remove this code.
NOTE:- After removing these types of codes, your WordPress theme won’t generate any type of image. Remove the codes only if you know their effects.
Can You Now Stop WordPress From Creating Multiple Images?
If you want to use the image size set by the theme provider then set the values to zero from the media settings.
For the rest, you should know a little bit about the WordPress theme codes. If you unintentionally remove the code which is generating the image size for all the thumbnails then it would break your website.
So what’s your plan? How are you going to stop WordPress from creating multiple images? Will you take any expert advice or do it yourself?