=== Delete Thumbnails === Contributors: davidsword Donate link: http://www.redcross.ca/donate/ Tags: delete, thumbnails, media, images, library, resized, delete sizes, image sizes, remove images, clean uploads, clean file sizes Requires at least: 3.0 Tested up to: 4.8 Stable tag: 2.0 Find and delete thumbnails & resized images from your Media Library == Description == **June 2017: Recently revived and completely rewritten.** Use this plugin to delete some or all of Wordpress resized images (thumbnails, medium, large, and extra ones Plugins and Themes secretly made) from your uploads directory. This can clear thousands of unwanted files. Useful if you've had lots of different theme/plugins over the years, accumulating a vast number of resized images that are no longer used by your site. Please note: 1. Deleting is permanent 1. You can use [this plugin](http://wordpress.org/plugins/regenerate-thumbnails/) to regenerate your Media Library after (as Wordpress will need the default sizes) == Installation == 1. Install the plugin from your Plugin browser, or download the plugin and extract the files and upload `delete-thumbnails` to your `/wp-content/plugins/` directory 1. Activate the plugin through the 'Plugins' menu in WordPress 1. View the *Delete Thumbnails* interface under *Tools* in your Wordpress Admin == Frequently Asked Questions == = What parameters are used to determine if a image is resized? = After looking at all files in the Wordpress uploads directory, a file is determined as resized when four criteria are meet: 1. It's an image 1. The filename ends with `-###-###` 1. The hidden header of the file contains Wordpress's default image quality comment with a value 82 1. The file URL is not a Wordpress Media Library parent item = What is this warning about `chmod` about? = The method of deletion only works when the server allows PHP to edit the folders contents. CHMOD is the permission settings for files and folders. If you've received a warning of this, the CHMOD on the upload directory is too low. = It says I have no resized images, but I do = Please note this is a new plugin (rewritten summer 2017), this plugin was developed and tested in only two server environments - variables on your setup may of not been considered while developing. Please open a request in the Support tab and provide as much info as you're willing to give to help resolve this issue and ensure this plugin works on all setups: * Wordpress & PHP version * Location of directory * Wether or not files are stored in year/month sub folders * ect. = How do I backup my files? = The plugin insists on backups as it removes files permanently, you can ignore and bypass, however you should always [backup your Wordpress installation](https://codex.wordpress.org/WordPress_Backups#Backing_Up_Your_WordPress_Site) == Screenshots == 1. List of all resized images in uploads directory with options to select and delete == Changelog == = 2.0 = * June 25, 2017 * Project revival * Code overhaul/rewrite * Added better assets * Much cleaner and Wordpress native looking interface, no more code-line look * Readme, UI, and inline documentation corrected and improved * Improved logic of deletion * Improved logic for form submission with low `max_input_vars` values in mind * better detection of thumbnails & cross checking media library attachments = 1.0 = * Sept 29, 2014 * Public Launch = 0.1 = * July 6, 2014 * Initial Build, private use == Upgrade Notice == = 2.0 = * all clear, blue sky = 1.0 = * all clear, blue sky == Road Map == The current todo list. * Add size range filters (ie: delete resized that are within x - y restraints) * Please add any additional requests into the Support tab.