Change default image size
-
I have three image up-loader plugin all different size
one is 120*120, two is 170*170 and last one is 240*100
i want to upload only one image for each plugin. now it is upload all default size and new size that is more than 8 images.
when i remove default size, it is effecting all post and page image uploadings.
removing function is :
add_action('init', 'ai_main_banner'); function ai_main_banner() { function sgr_filter_image_sizes( $sizes) { unset( $sizes['thumbnail']); unset( $sizes['medium']); unset( $sizes['large']); unset( $sizes['full']); return $sizes; } add_filter('intermediate_image_sizes_advanced', 'sgr_filter_image_sizes'); add_image_size( 'home_banner', 120, 120, true );
when i upload images from page or post i want to upload all default size and when i upload images from new plugins i want to upload only one defined size images. how can i do this
i don’t want default image size
- The topic ‘Change default image size’ is closed to new replies.