Title: Auto-Disable Unused Image Sizes
Author: imfaizanakram
Published: <strong>2025 年 9 月 13 日</strong>
Last modified: 2025 年 9 月 13 日

---

搜索插件

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://s.w.org/plugins/geopattern-icon/auto-disable-unused-image-sizes.svg)

# Auto-Disable Unused Image Sizes

 作者：[imfaizanakram](https://profiles.wordpress.org/imfaizanakram/)

[下载](https://downloads.wordpress.org/plugin/auto-disable-unused-image-sizes.1.0.0.zip)

 * [详情](https://cn.wordpress.org/plugins/auto-disable-unused-image-sizes/#description)
 * [评价](https://cn.wordpress.org/plugins/auto-disable-unused-image-sizes/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/auto-disable-unused-image-sizes/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/auto-disable-unused-image-sizes/#developers)

 [支持](https://wordpress.org/support/plugin/auto-disable-unused-image-sizes/)

## 描述

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

## 安装

 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

## 常见问题

### 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

## 评价

此插件暂无评价。

## 贡献者及开发者

「Auto-Disable Unused Image Sizes」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ imfaizanakram ](https://profiles.wordpress.org/imfaizanakram/)

[帮助将「Auto-Disable Unused Image Sizes」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/auto-disable-unused-image-sizes)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/auto-disable-unused-image-sizes/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/auto-disable-unused-image-sizes/)，
或通过[RSS](https://plugins.trac.wordpress.org/log/auto-disable-unused-image-sizes/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/auto-disable-unused-image-sizes/)。

## 更新日志

#### 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**

## 额外信息

 *  版本 **1.0.0**
 *  最后更新：**1 年前**
 *  活跃安装数量 **50+**
 *  WordPress 版本 ** 5.0 或更高版本 **
 *  已测试的最高版本为 **6.8.11**
 *  PHP 版本 ** 7.4 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/auto-disable-unused-image-sizes/)
 * 标签
 * [image](https://cn.wordpress.org/plugins/tags/image/)[media](https://cn.wordpress.org/plugins/tags/media/)
   [Optimize](https://cn.wordpress.org/plugins/tags/optimize/)[performance](https://cn.wordpress.org/plugins/tags/performance/)
   [sizes](https://cn.wordpress.org/plugins/tags/sizes/)
 *  [高级视图](https://cn.wordpress.org/plugins/auto-disable-unused-image-sizes/advanced/)

## 评级

尚未提交反馈。

[您的评价](https://wordpress.org/support/plugin/auto-disable-unused-image-sizes/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/auto-disable-unused-image-sizes/reviews/)

## 贡献者

 *   [ imfaizanakram ](https://profiles.wordpress.org/imfaizanakram/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/auto-disable-unused-image-sizes/)