17.06.2018
Stop WordPress from Generating thumbnails.
When uploading images on WP it is really a nightmare if you go and check what is going on in the uploads folder, countless versions of the same file for different purpose
Well I know that 1 size doesn’t fit all but upload it on different sizes, it is much better then leaving WP to decide for you and have a folder with over 10000 variations of same image. It is important the idea behind this as you have full control what is happening in there. A WP website over 500mb it doesn’t just make sense even for those Gallery once.
So what I do you ask ?. If you are not a developer go ahead and delete unneeded images & thumbnails are deleted together with the main one also use tinypng.com to compress before upload.
Or go ahead bazooka style and disable it completely , just add this code in functions.php .
function no_sizes($sizes){
$sizes = array();
return $sizes;
}
add_filter('intermediate_image_sizes_advanced', 'no_sizes');
You can always use a plugin for this but please don’t do it here it is
why
And another short tip to properly maintain go and limit the file upload size to 1MB for WordPress as no one should upload images over that in WordPress , If they need to they probably should use another tool as WordPress it simply doesn’t work well with large galleries, try to open media with 40-50 files of 1+ MB , either way you should not be uploading large ZIP files on WP directly.
Go crazy on that .ini, check your host if doesn’t work.
upload_max_filesize = 1M
post_max_size = 1M
Is this a good idea? , well it let you judge it , this is a good long term solution, try to transfer a website that has 1000+ products and 10 000 images that are cropped in different sizes with German letters that brake when zipped. Trust me you don’t want that.