How does WordPress handle images?
After uploading an image to the media library, WordPress will automatically generate additional images with 3 default image sizes and store them separately. So you will see 4 image options when uploading an image. These are thumbnail, medium, large and full size options. The first three options are called Default WordPress Image Size, while the Full Size option is the original image size you upload.
WordPress created these options because using different positions to place images will require different image resolutions. For example, the image resolution in the thumbnail might be different than the image resolution used in the slider. So if you want to use the same image at different resolutions in different places, you don’t need to edit and resize the image manually. Only one image is required, and WordPress does the rest.
What are the default WordPress image sizes?
By default, WordPress comes with three prepackaged image sizes. they are:
Thumbnail: (150px width and height)
Medium size: (max 300px width and height);
Large size: (max 1024px width and height);
Full size: (full size/original image size of your upload).
How to Change the Default WordPress Image Size
Although WordPress already provides you with 3 default image sizes if you think these options do not meet your needs, there are other options. Maybe, you need a smaller thumbnail or a wider featured image. Therefore, you need to change the default WordPress image size. To do this, you can follow these steps:
- Go to your admin dashboard
- Hover over Settings -> Media
- In the Media Settings window, you can adjust the desired pixels for each size
- Click the Save Changes button to save the settings.
How to Add Your Custom WordPress Image Size？
So you have 3 default image sizes. Let’s say your thumbnails have thumbnail-sized images, your articles’ images have medium-sized images, and your sliders have large-sized images. However, you realize that popup banners and widgets require more default image sizes. Can you add custom WordPress image sizes? Yes, you can.
Step 1. Add custom WordPress image size by editing function.php file
In fact, some themes give you additional image size options. But if you can’t find them, let’s add our own custom WordPress image size.
You have set a new custom image size in WordPress. However, this change will not affect your previous images. So you need to regenerate the previous image dimensions.
Fortunately, you don’t need to do it one by one manually. There is a plugin called Regenerate Thumbnails that can help you update previous image sizes. Follow the steps below to do so.
Go to your admin dashboard
Click on Plugins -> Install Plugin
Type Regenerate Thumbnails in the search bar.
Install and activate the plugin
Now, go to Tools -> Regenerate Thumbnails
Click the Regenerate Thumbnails For X Attachments button
All images you previously uploaded will now be regenerated as new image settings.
WordPress image size may seem like a trivial thing, but it can actually give you a headache. Sometimes you will find that the images you upload do not match the size of the images you want. To solve this problem, you can try two methods. You can change the default WordPress image size or add custom image sizes. Before setting a new image size, keep in mind that uploading large images with high resolution is not a good idea. Large sized images take up a lot of space and slow down your website loading time. We hope this article helped you choose the right image in the right place, and use the right size.