Auto-Disable Unused Image Sizes

Description

Auto-Disable Unused Image Sizes is a professional, lightweight WordPress plugin that helps you save storage space and improve performance by preventing unused image sizes from being generated when you upload new images.

🎯 Key Features:

  • Smart Image Size Detection: Automatically detects all WordPress image sizes including default sizes (thumbnail, medium, large) and custom sizes added by themes and plugins
  • Beautiful Admin Dashboard: Modern, responsive interface with statistics dashboard, bulk actions, and visual feedback
  • Bulk Management: Select all, deselect all, and bulk enable/disable operations for efficient management
  • Real-time Updates: Live statistics and visual feedback as you make changes
  • Keyboard Shortcuts: Use Ctrl+A to select all, Ctrl+D to deselect all, and Escape to clear selection
  • Responsive Design: Works perfectly on all devices including mobile and tablet
  • Accessibility: Full keyboard navigation and screen reader support
  • Lightweight: No external libraries, no ads, no pro version upsells

🚀 How It Works:

When you upload an image, WordPress automatically generates multiple sizes (thumbnail, medium, large, etc.). This plugin hooks into the image generation process and removes any sizes you’ve disabled from the generation list. This means:

  • New images won’t generate the disabled sizes
  • Existing images remain untouched
  • Storage space is saved on future uploads
  • Performance improves with fewer image files
  • Immediate effect after saving settings

🎨 User Experience Features:

  • Statistics Dashboard: See total, disabled, and active image sizes at a glance
  • Visual Cards: Each image size displayed in an attractive card with status indicators
  • Smart Labels: Clear distinction between default and custom image sizes
  • Dimension Display: Shows actual pixel dimensions for each size
  • Status Indicators: Color-coded enabled/disabled states
  • Bulk Actions: Efficiently manage multiple sizes at once
  • Success Messages: Clear feedback for all operations
  • Helpful Tips: Built-in guidance for optimal usage

💡 Perfect For:

  • Developers who want to control which image sizes are generated
  • Site Owners with limited storage space
  • Performance Enthusiasts looking to optimize their WordPress site
  • Content Creators who only need specific image sizes
  • Agencies managing multiple client sites
  • Anyone looking to optimize their WordPress media library

Installation

  1. Upload the plugin files to the /wp-content/plugins/auto-disable-unused-image-sizes directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the ‘Plugins’ screen in WordPress
  3. Navigate to Settings Image Sizes to access the admin dashboard
  4. Review your image sizes – the plugin automatically detects all available sizes
  5. Select sizes to disable using the intuitive checkbox interface
  6. Use bulk actions for efficient management (Select All, Disable Selected, etc.)
  7. Click Save Changes to apply your settings

That’s it! The plugin will immediately start preventing the disabled image sizes from being generated for new image uploads.

🎮 Quick Start Guide:

  1. First Visit: Check the statistics dashboard to see your current image size count
  2. Review Sizes: Look for sizes you don’t need (often custom theme sizes)
  3. Start Small: Begin by disabling 1-2 sizes to test the impact
  4. Use Bulk Actions: Select multiple sizes and disable them at once
  5. Monitor Results: Check your storage usage to see the space savings

FAQ

Does this plugin delete existing images?

No, absolutely not! This plugin only prevents new unused image sizes from being generated. It does not delete any existing images or image sizes that are already on your server. Your current media library remains completely untouched.

Will this affect my current theme or plugins?

No, this plugin only affects the generation of new image sizes. Your theme and plugins will continue to work normally with existing images. The plugin only prevents new sizes from being created during future uploads.

Can I re-enable a size after disabling it?

Yes, absolutely! Simply go to Settings Image Sizes, uncheck the box for the size you want to re-enable, and save your changes. The size will immediately be available for new image uploads.

What happens if I disable all image sizes?

This is not recommended. If you disable all image sizes, only the original uploaded image will be stored. This may break your theme’s layout and functionality. We recommend keeping at least the thumbnail and medium sizes enabled.

Does this work with custom image sizes added by themes or plugins?

Yes! The plugin automatically detects all registered image sizes including custom ones added by themes and plugins. You’ll see them clearly labeled as «Custom» in the admin interface.

Is this plugin compatible with my hosting provider?

Yes, this plugin works with any hosting provider that supports WordPress. It only uses standard WordPress functions and doesn’t require any special server configurations or additional software.

Will this improve my site’s performance?

Yes! By reducing the number of image files generated, you’ll save storage space and potentially improve page load times, especially for image-heavy pages. Fewer files mean faster loading and better user experience.

How do I know which sizes to disable?

Start with custom sizes added by themes or plugins that you don’t actively use. Keep default sizes (thumbnail, medium, large) enabled unless you’re certain you don’t need them. The plugin clearly labels which sizes are default vs. custom to help you make informed decisions.

Can I use keyboard shortcuts?

Yes! The plugin includes several keyboard shortcuts for efficient management:
Ctrl+A (or Cmd+A on Mac): Select all image sizes
Ctrl+D (or Cmd+D on Mac): Deselect all image sizes
Escape: Clear all selections
Enter/Space: Toggle individual size selection

Is this plugin accessible?

Yes! The plugin is built with accessibility in mind, including:
– Full keyboard navigation support
– Screen reader compatibility
– High contrast mode support
– Clear visual indicators and labels
– Proper ARIA attributes

Reviews

There are no reviews for this plugin.

Contributors & Developers

“Auto-Disable Unused Image Sizes” is open source software. The following people have contributed to this plugin.

Contributors

Changelog

1.0.0

  • Initial release with comprehensive feature set
  • Smart image size detection for all WordPress sizes (default and custom)
  • Modern admin dashboard with statistics and visual feedback
  • Bulk management tools including select all, deselect all, and bulk operations
  • Responsive design that works on all devices
  • Keyboard shortcuts for efficient management
  • Accessibility features including screen reader support and keyboard navigation
  • Real-time updates and visual feedback
  • Professional UI/UX with card-based layout and status indicators
  • WordPress coding standards compliance with proper sanitization and escaping
  • Comprehensive documentation and user guidance
  • Tested with WordPress 6.8