Prevent WordPress from automatically cutting images into multiple sizes - HOSTVN Blog

WordPress automatically cuts images - Every time you upload a photo on the WordPress website, it automatically cuts the image into multiple sizes including thumbnails, medium and large. In addition, your interface can also create multiple images with different sizes, and over time this will cause the size of your website to grow. In this article, HOSTVN will show you how to prevent WordPress from automatically cropping images into multiple sizes.

Why is it necessary to prevent WordPress from automatically cutting images into multiple sizes?

WordPress adds each image to 3 guest images in three sizes, and your interface may also crop the image to its own size to suit the display's display needs.

If your blog contains too many images and you usually will not use up all of these extra cropped images, they will take up a lot of your hosting / vps space as well as make it difficult to back up the data due to data is too large. Therefore you will need to prevent WordPress automatically crop the image into multiple dimensions to avoid its undesirable effects

Instructions for preventing WordPress from automatically cutting images into multiple sizes

1. Configure WordPress media settings

You can easily prevent your WordPress site from creating images by going to it Settings (Settings) -> Library (Media). Here you set as shown and click Save Changes. This setting will prevent WordPress from cropping images into multiple sizes.

WordPress automatically cuts the image

2. Set up the interface

The WordPress interface that you are using also creates additional images with multiple sizes to use for different purposes such as featured images and thumbnails. You need to delete or deactivate the image size code stream in the file function fuctions.php of the interface to prevent your interface from creating images.

You can access the hosting by FTP then go to /wp-content/themes/display-using-use-users/functions.php.

(embed) (/ embed)

In the file functions.php Here you can find the function add_image_size same as below

You can also find functions set_post_thumbnail_size Create thumbnail images of posts. The code looks like this

However, deleting these codes may disable the functionality for creating galleries and thumbnail images for articles on your site. Only do this if you are certain and experienced in handling code.


HOSTVN Hope this guide will help you prevent WordPress from automatically cutting images into multiple sizes. If you have any comments you can leave a comment below. Also you can see more other articles about WordPress here


seo marketing wordpress seo seo hosting seo and marketing word press seo wordpress and seo wordpress marketing hosting seo seo press pro market seo seo & marketing seo e marketing e marketing seo seo pro wordpress marketing & seo seo di wordpress wordpress seo host hosting and seo wordpress hosting seo wordpress seo wordpress wordpress for marketing seo press wordpress marketing for seo