Remove Extra Images for Inode Optimization

Dec 20, 2020

If you see high inode usage on your control panel account and your website is built using WordPress, you can reduce inode usage by removing unused image files. 

WordPress Image Files

By default, WordPress creates four different copies of an image when you upload it through the Media Library: 

  • Thumbnail
  • Medium size
  • Medium-large size
  • Large size

In addition to that, plugin and theme developers can also register different sizes and thumbnails of images in their code, and sometimes these remain sitting on your account without you even knowing. 

This could eat up a lot of Inode capacity on your hosting account.

Stop Generating Unnecessary Thumbnails

We recommend using the Stop Generating Unnecessary Thumbnails plugin to reduce the number of images on your account.

Log in to your WordPress Dashboard as explained here, and head to Plugins > Add New. Fill in Stop Generating Unnecessary Thumbnails in the search bar at the top-right corner and click the Install Now button:

Activate the plugin:

Image Sizes

Next, head to Media > Image Sizes, and select the sizes you want to disable from being generated automatically:

Click Save Settings to save the changes.

This will only help with future images, but we also need to fix the existing duplicated images.

Regenerate Thumbnails

To do that, click Regenerate Thumbnails on the same page:

This function will re-generate thumbnails for all existing images and remove the bad sizes previously chosen. 

Click Regenerate to go to the next step:

Voil√°! The plugin will let you know once it’s completed with detailed statistics on how many images were processed, removed, and re-generated:

That’s it!