=== Imadero === Contributors: onestepwebdesign Tags: images, thumbnails, cleanup, media, optimization Requires at least: 5.8 Tested up to: 6.9 Requires PHP: 7.4 Stable tag: 1.0.0 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html Remove auto-generated image thumbnails to free up disk space and keep your media library clean. == Description == WordPress automatically creates multiple copies of every image you upload in different sizes (thumbnail, medium, large, and more). Over time, this wastes a significant amount of disk space, especially on large sites with thousands of images. **Imadero** scans your media library, finds all auto-generated thumbnails, and removes them safely. It also updates all references in your posts, pages, and metadata to use the original image instead. = Features = * **Scan** your media library to find all auto-generated thumbnails * **Preview** how many files and how much disk space can be freed before deleting anything * **Delete** all thumbnails in batches (safe for large sites) * **Rewrite** all database references (posts, meta, options) to use the original image * **Prevent** WordPress from generating thumbnails on future uploads * Handles serialized data safely (works with Elementor, Divi, WPBakery, and other page builders) * Handles Gutenberg block attributes (sizeSlug, CSS classes) * Removes WordPress -scaled images and restores the original * Batch processing prevents timeouts on large installations * Works with WooCommerce product images = How It Works = 1. Go to **Tools > Imadero** in your WordPress admin 2. Click **Start Scan** to find all auto-generated thumbnails 3. Review the results: number of thumbnails and disk space used 4. Click **Delete Thumbnails** to remove them and update database references 5. Optionally enable **Disable automatic thumbnail generation** to prevent future thumbnails = Important Notes = * Always create a **backup** before running the cleanup * The deletion process **cannot be undone** * WordPress will automatically fall back to the original image where thumbnails were used * The plugin works per site on Multisite installations == Installation == 1. Upload the `imadero` folder to the `/wp-content/plugins/` directory 2. Activate the plugin through the Plugins menu in WordPress 3. Go to **Tools > Imadero** to start cleaning up == Frequently Asked Questions == = Will my images break after removing thumbnails? = No. WordPress automatically falls back to the original image when a requested size is not available. Your images will still display correctly. = Does this work with page builders like Elementor or Divi? = Yes. Imadero safely handles serialized data in the database, which is how most page builders store their content. = Can I undo the deletion? = No. The thumbnail files are permanently deleted. We strongly recommend creating a backup before running the cleanup. = Does this affect the original uploaded images? = No. Only the auto-generated copies (thumbnails) are removed. Your original images are never touched. = What happens with future uploads? = By default, WordPress will continue to generate thumbnails for new uploads. You can disable this by enabling the Disable automatic thumbnail generation option in the plugin settings. = Does this work on Multisite? = Yes. The plugin works on a per-site basis. Each site administrator can run the cleanup independently. == Screenshots == 1. Scan results showing the number of thumbnails and disk space used 2. Cleanup in progress with batch processing 3. Settings to disable future thumbnail generation == Changelog == = 1.0.0 = * Initial release * Scan media library for auto-generated thumbnails * Delete thumbnails with batch processing * Rewrite database references to use original images * Prevent future thumbnail generation * Safe handling of serialized data * Gutenberg block attribute rewriting