Skip to content

How to Disable Different Image Sizes for WordPress Website?

Key Takeaways

  • Nexter Extension adds a Disable Image Sizes card on the Performance screen, where WordPress users switch on each size they do not want and click Save.
  • WordPress stops creating resized copies such as thumbnail, medium, medium_large, large, 1536x1536, and 2048x2048 when those sizes are disabled, including sizes added by a theme or plugins.
  • Nexter Extension 4.9.2 is tested on WordPress 7.1.5, and version 4.7.7 fixes a case where Thumbnail, Medium, Medium Large, and Large are still generated.
Table of Contents

To disable image sizes in WordPress, install the free Nexter Extension plugin, turn on Disable Image Sizes on the Performance screen, switch on each size you do not want, and click Save.

What It Does

Disable Image Sizes lets you choose which resized copies WordPress should stop creating when you upload an image.

Why It Matters

WordPress creates several resized copies of a large enough upload, and your theme or plugins can register more. Each copy is another file in your uploads folder. If your site never uses a size, you can stop creating it.

What You Get

  • A Disable Image Sizes card on the Performance screen
  • A Sizes not to generate list with a switch for each size
  • Sizes such as thumbnail, medium, medium_large, large, 1536×1536 and 2048×2048, plus sizes added by your theme or plugins

Benefits

  • Fewer new files in the uploads folder
  • You pick sizes one by one
  • No custom code to write

Capabilities

ActionResult in our test
Switch on medium_large, save, then upload a large JPEGNo medium_large copy was created; the other sizes were
Turn both image size cards off, then upload againmedium_large was created again

How It Works

The plugin removes the sizes you switch on from the list WordPress is about to generate. This also covers the WordPress sizes such as thumbnail, medium and large. We tested it with Nexter Extension 4.9.2 on WordPress 7.1.5.

How to Use It

  1. In your WordPress dashboard, go to Nexter > Extensions and select Performance in the Nexter sidebar.
  2. Turn on the Disable Image Sizes card. If the panel does not open, click Configure.
Nexter Performance screen with Performance selected in the sidebar and the Disable Image Sizes card turned on
  1. Under Sizes not to generate, switch on each size you want to stop creating. A switch that is on means the size is disabled.
  2. Click Save.
  3. Upload a test image and check that your pages still show images as you expect.
Disable Image Sizes panel with a switch for each image size under Sizes not to generate

Use Cases

  • Your theme registers a size that no layout on your site uses
  • You want to limit new files on hosting with tight storage
  • You replaced a theme and no longer need its extra sizes

Limitations

  • It affects files created after you save. It does not delete copies that already exist in your uploads folder.
  • Your original upload is not one of the sizes in this list.
  • If a theme or plugin asks for a size that was never created, WordPress shows another available file, which can be larger than needed.
  • Images uploaded while a size was disabled do not get that size automatically when you enable it again.

Troubleshooting

A disabled size is still in the uploads folder

Check the upload date. Files created before you saved the setting stay in place.

Thumbnail or large copies are still created

Check that the switch for that size is on and that you clicked Save. Also update the plugin: version 4.7.7 fixed a case where Thumbnail, Medium, Medium Large and Large were still generated.

An older image is missing a size you turned back on

Back up your uploads, turn on Regenerate Thumbnails under Utilities, keep that size on under Sizes to regenerate, and click Regenerate.

Suggested Reading

Share your Thoughts

Still in Doubt? Let’s Assist You

Have Feedback or Questions?

Join our WordPress Community on Facebook!