# Registered Image Sizes Under Tools

> Adds a Tools > Image Sizes screen listing every image size WordPress creates on upload, with its width, height and crop mode, so you can see what themes and plugins have added.

- Type: PHP
- Runs: Admin only
- Category: [Developer](https://wpide.com/library/category/developer/)
- Tags: image-sizes, media, debugging
- Author: WPIDE Team
- Installs: 0
- Updated: 2026-10-28
- Page: https://wpide.com/library/debug-image-sizes-page/

## Code

```php
add_action( 'admin_menu', function () {
    add_management_page( 'Image Sizes', 'Image Sizes', 'manage_options', 'wpide-image-sizes', function () {
        $sizes = wp_get_registered_image_subsizes();

        echo '<div class="wrap"><h1>Image Sizes (' . count( $sizes ) . ')</h1><table class="widefat striped"><thead><tr><th>Name</th><th>Width</th><th>Height</th><th>Crop</th></tr></thead><tbody>';
        foreach ( $sizes as $name => $size ) {
            $crop = $size['crop'];
            if ( is_array( $crop ) ) {
                $crop = 'yes (' . implode( ' ', $crop ) . ')';
            } else {
                $crop = $crop ? 'yes' : 'no (scaled)';
            }
            printf(
                '<tr><td><code>%s</code></td><td>%s</td><td>%s</td><td>%s</td></tr>',
                esc_html( $name ),
                $size['width'] ? (int) $size['width'] . 'px' : 'any',
                $size['height'] ? (int) $size['height'] . 'px' : 'any',
                esc_html( $crop )
            );
        }
        echo '</tbody></table>';
        printf( '<p>Big image threshold: %s</p></div>', esc_html( ( $threshold = apply_filters( 'big_image_size_threshold', 2560, array( 0, 0 ), '', 0 ) ) ? $threshold . 'px' : 'off' ) );
    } );
} );
```

## Notes

Each listed size is generated for every uploaded image; remove the ones you do not use to save disk space.

## How to use it

Install the free WPIDE plugin (https://wordpress.org/plugins/wpide/), find "Registered Image Sizes Under Tools" 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/
