I prevent WordPress from generating thumbnail
, medium
, and large
image sizes for images I upload to the Media Library, by setting their dimensions to 0
from the dashboard: Settings -> Media
panel.
I have also gotten rid of all instances of add_image_size
and set_post_thumbnail_size
from the functions.php
file of my theme.
However, when I upload new images, WordPress is still generating a 768px
width version (called 'medium_large') from my original full size image. I believe it has something to do with this update.
Is there is any way to prevent this from happening?
medium_large
image size appeared in WordPress 4.4, together with responsive images feature. It has fixed width768
px, and proportional height. This is hard coded into WordPress, unlike the other default image sizes. I also am removing it, however WordPress and other themes may rely on having this image size available to work properly. Keep this in mind if you ever need to switch to a default WordPress theme temporarily for debugging, or when trying new themes. If the size wasn't generated at image upload, other themes will not automatically generate it when needed