# Skip Unneeded Image Sizes

> Stops WordPress from generating the medium_large, 1536px and 2048px copies of every upload, saving disk space.

- Type: PHP
- Runs: Run everywhere
- Category: [Media](https://wpide.com/library/category/media/)
- Tags: media, images, thumbnails, disk-space
- Author: WPIDE Team
- Installs: 0
- Updated: 2026-10-28
- Page: https://wpide.com/library/disable-extra-image-sizes/

## Code

```php
add_filter( 'intermediate_image_sizes_advanced', function ( $sizes ) {
    unset( $sizes['medium_large'], $sizes['1536x1536'], $sizes['2048x2048'] );

    return $sizes;
} );
```

## Notes

Responsive images will have fewer sizes to choose from on large screens.

## How to use it

Install the free WPIDE plugin (https://wordpress.org/plugins/wpide/), find "Skip Unneeded Image Sizes" in its snippet library and add it in one click; or create a new PHP snippet in WPIDE (or any code snippets plugin) and paste the code above. More snippets: https://wpide.com/library/
