WordPress resizes its images into 3 default sizes:
- Large (Default: 1024 × 1024)
- Medium (Default: 300 × 300)
- Thumbnail (Default: 150 × 150)
And in all the three cases WordPress simply crop them from middle by default, and make their different versions for different use cases. It's done to ensure speed.
When we call a featured image in somewhere we simply call the size inside the function like:
the_post_thumbnail( 'large' );
Okay, now the good news is, though WordPress resizes all the uploaded images, it keeps the original one intact, and we can use the original one too, wherever necessary. To use the original file, you just need to call:
So, the problem is now on your theme file. You need to modify the theme file to change the code into something like this.
From admin panel
Though it's not related for your cause, but to stop those auto resizing, follow the simple steps:
/wp-admin from Settings » Media
- Now in
Thumbnail sizes, simply put zero (
0) into their width and height.
- Now Save changes.
It'll stop those resizes from the future uploads. :)
You can use
remove_image_size() function into your
functions.php to disable all the three default image sizes:
It will stop resizing the images into those sizes.