문제

How can I stop Wordpress from making thumbnails? It uses a lot of my nodes, and memory!

How can I do this?

PS: My Wordpress site creates 3 images per uploaded image. (and I have galleies of 20-30 images per article => sooooooooo much nodes and memory)...

도움이 되었습니까?

해결책

It's very simple to do this...

You have no visible option "stop Wordpress making thumbnails".

You must do the following:

  1. Go to Settings -> Media

  2. Uncheck "Crop thumbnail to exact dimensions (normally thumbnails are proportional)" if is checked

  3. Set at Thumbnail size, Medium size and Large size the Width and Height to 0

Now Wordpress won't create you thumbnails.

I hope this will help you!

다른 팁

In wordpress when you upload new image that wordpress set it's thumbnail images accoring to set from admin panel or define in theme functions file. Here is simple way for stop generating thumbnails by simple put below code in your theme function file.

function chnage_filter_image_sizes($sizes){
    $sizes = array();
    return $sizes;
}
add_filter('intermediate_image_sizes_advanced', 'chnage_filter_image_sizes');

Here if you want to generate own thumbnails with custome width and height whenever upload any image than just put parametes as below.

function chnage_filter_image_sizes($sizes){
    $sizes = array('thumbnail_name'=>array('width'=>'120','height'=>'120','crop'=>true));
    return $sizes;
}
add_filter('intermediate_image_sizes_advanced', 'chnage_filter_image_sizes')
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top