When we change our WordPress themes, we often forget that default image sizes have changed too. As most plugins to resize WordPress images don’t remove the current resized images, our wp-content/uploads or wp-content/blog.dir directories become full of abandoned images resulting in wasted disk space.
The command lines below will remove current resized images, including Retina versions so that we can correctly resize WordPress images per the new theme dimensions. And yes, we’re using the command line, because I (Michael) am old school.
SHOW all resized images
DELETE all resized images
Rebuild to Resize WordPress Images
After deleting the resized media images, we can regenerate the sizes needed by using the Regenerate Thumbnails or AJAX Thumbnail Rebuild WordPress plugins.
Stuck? Axelerant's WordPress Support is What You Need
Learn More
This article was originally written in September 2011 and has been updated since for clarity.
This article Remove & Resize WordPress Images by Michael Cannon first appeared on Axelerant - Axelerant: Expert Drupal Development, Support, & Staffing.