Title: Plugin keeps resizing my images
Last modified: March 27, 2017

---

# Plugin keeps resizing my images

 *  Resolved [partyz](https://wordpress.org/support/users/partyz/)
 * (@partyz)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/plugin-keeps-resizing-my-images/)
 * Hi,
 * it’s absolutely frustrating. I turned off the native resize function by setting
   0 in Settings -> Media (all fields set to 0). Not working, when using MLM it 
   still makes 768x and 252x images. So I edited my theme’s function.php file and
   added:
 *     ```
       remove_image_size('large');
       remove_image_size('medium');
       remove_image_size('thumbnail');
       ```
   
 * Guess what – it is still making those two variants after every upload. How to
   turn it off? If it is not possible – which lines should I remove or edit in the
   plugin’s files?
 * Thank you in advance.
    -  This topic was modified 9 years, 3 months ago by [partyz](https://wordpress.org/support/users/partyz/).
    -  This topic was modified 9 years, 3 months ago by [partyz](https://wordpress.org/support/users/partyz/).

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [AlanP57](https://wordpress.org/support/users/alanp57/)
 * (@alanp57)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/plugin-keeps-resizing-my-images/#post-8960403)
 * Media Library Plus use a WordPress core function to create metadata and thumbnails:
   [wp_generate_attachment_metadata()](https://codex.wordpress.org/Function_Reference/wp_generate_attachment_metadata)
   and I’m not aware of a way to tell the function which registered thumbnails sizes
   to generate or not generate.
 * Note that the documentation for [remove_image_size()](https://codex.wordpress.org/Function_Reference/remove_image_size)
   states that it, “Cannot be used on reserved image size names”, and those are:‘
   thumb’, ‘thumbnail’, ‘medium’, ‘large’, ‘post-thumbnail’.
 *  Thread Starter [partyz](https://wordpress.org/support/users/partyz/)
 * (@partyz)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/plugin-keeps-resizing-my-images/#post-8963683)
 * OK, I’ll try to override this behavior. Thank you very much.
 *  [DS](https://wordpress.org/support/users/dosolnce/)
 * (@dosolnce)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/plugin-keeps-resizing-my-images/#post-9154197)
 * I found this solution on the Internet. It is working.
 *     ```
       add_filter( 'intermediate_image_sizes', 'delete_intermediate_image_sizes' );
       function delete_intermediate_image_sizes( $sizes ){
       	return array_diff( $sizes, array(
       		'medium_large',
       		'large',
       	) );
       }
       ```
   

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Plugin keeps resizing my images’ is closed to new replies.

 * ![](https://ps.w.org/media-library-plus/assets/icon-128x128.jpg?rev=1814048)
 * [Media Library Folders](https://wordpress.org/plugins/media-library-plus/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/media-library-plus/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/media-library-plus/)
 * [Active Topics](https://wordpress.org/support/plugin/media-library-plus/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/media-library-plus/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/media-library-plus/reviews/)

## Tags

 * [thumbnail generation](https://wordpress.org/support/topic-tag/thumbnail-generation/)

 * 3 replies
 * 3 participants
 * Last reply from: [DS](https://wordpress.org/support/users/dosolnce/)
 * Last activity: [9 years, 2 months ago](https://wordpress.org/support/topic/plugin-keeps-resizing-my-images/#post-9154197)
 * Status: resolved