{"id":32058,"date":"2014-11-07T15:29:47","date_gmt":"2014-11-07T15:29:47","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/delete-thumbnails\/"},"modified":"2017-07-06T21:25:12","modified_gmt":"2017-07-06T21:25:12","slug":"delete-thumbnails","status":"publish","type":"plugin","link":"https:\/\/cl.wordpress.org\/plugins\/delete-thumbnails\/","author":6112766,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"2.2","stable_tag":"2.2","tested":"4.8.28","requires":"4.0","requires_php":"","requires_plugins":"","header_name":"Delete Thumbnails & Resized Images","header_author":"davidsword","header_description":"","assets_banners_color":"e7797d","last_updated":"2017-07-06 21:25:12","external_support_url":"","external_repository_url":"","donate_link":"http:\/\/www.redcross.ca\/donate\/","header_plugin_uri":"https:\/\/davidsword.ca\/wordpress-plugins\/","header_author_uri":"https:\/\/davidsword.ca\/","rating":3.9,"author_block_rating":0,"active_installs":200,"downloads":8471,"num_ratings":15,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":{"2.1":"<ul>\n<li>all clear, blue sky<\/li>\n<\/ul>","2.0":"<ul>\n<li>all clear, blue sky<\/li>\n<\/ul>","1.0":"<ul>\n<li>all clear, blue sky<\/li>\n<\/ul>"},"ratings":{"1":"4","2":0,"3":0,"4":0,"5":"11"},"assets_icons":{"icon-256x256.jpg":{"filename":"icon-256x256.jpg","revision":"1685851","resolution":"256x256","location":"assets"}},"assets_banners":{"banner-1544x500.jpg":{"filename":"banner-1544x500.jpg","revision":"1685851","resolution":"1544x500","location":"assets"},"banner-772x250.jpg":{"filename":"banner-772x250.jpg","revision":"1685851","resolution":"772x250","location":"assets"}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0","2.0","2.1","2.2"],"block_files":[],"assets_screenshots":{"screenshot-1.png":{"filename":"screenshot-1.png","revision":"1685851","resolution":"1","location":"assets"}},"screenshots":{"1":"List of all resized images in uploads directory with options to select and delete"},"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[2872,163,1980,84,2956],"plugin_category":[50],"plugin_contributors":[92102],"plugin_business_model":[],"class_list":["post-32058","plugin","type-plugin","status-publish","hentry","plugin_tags-delete","plugin_tags-images","plugin_tags-library","plugin_tags-media","plugin_tags-thumbnails","plugin_category-media","plugin_contributors-davidsword","plugin_committers-davidsword"],"banners":{"banner":"https:\/\/ps.w.org\/delete-thumbnails\/assets\/banner-772x250.jpg?rev=1685851","banner_2x":"https:\/\/ps.w.org\/delete-thumbnails\/assets\/banner-1544x500.jpg?rev=1685851","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/delete-thumbnails\/assets\/icon-256x256.jpg?rev=1685851","icon_2x":"https:\/\/ps.w.org\/delete-thumbnails\/assets\/icon-256x256.jpg?rev=1685851","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/delete-thumbnails\/assets\/screenshot-1.png?rev=1685851","caption":"List of all resized images in uploads directory with options to select and delete"}],"raw_content":"<!--section=description-->\n<h4>Delete thumbnails &amp; resized images from your Media Library<\/h4>\n\n<ul>\n<li>Delete some or all of Wordpress's resized images (thumbnails, medium, and large, plus extra ones Plugins\/Themes make secretly)<\/li>\n<li>This can clear thousands of unwanted files from your uploads directory <\/li>\n<li>Useful if you've had lots of different theme\/plugins over the years, and inadvertently accumulated a vast number of resized images that are no longer used by your site<\/li>\n<\/ul>\n\n<h4>Take careful note<\/h4>\n\n<ol>\n<li>Deleting is permanent<\/li>\n<li>You can use <a href=\"http:\/\/wordpress.org\/plugins\/regenerate-thumbnails\/\">this plugin<\/a> to regenerate your Media Library after (as Wordpress will need the default sizes)<\/li>\n<\/ol>\n\n<h4>Please Note<\/h4>\n\n<ul>\n<li>\ud83c\udf7a This is a <strong>recently revived and re-written plugin<\/strong>, the bad reviews were correct for the old versions, but not current version. If you experience any issues, please open a support request, I'm happy to help fix any issues and help plugin grow.<\/li>\n<\/ul>\n\n\n\n<h3>Road Map<\/h3>\n\n<h4>The current todo list<\/h4>\n\n<ul>\n<li>[ ] Add css animation\/color to nag inputs when clicking disabled button<\/li>\n<li>[ ] Add <code>count($this-&gt;library)<\/code> result as 'exempt' in main info banner to assure Media Library items are safe<\/li>\n<li>[ ] Add size range filters (ie: delete resized that are within x - y restraints)<\/li>\n<li>[ ] Make <code>View<\/code> link work off of a Lightbox instead of a new browser tab<\/li>\n<li>[ ] Please add any additional requests into the Support tab.<\/li>\n<\/ul>\n\n<!--section=installation-->\n<ol>\n<li>Install the plugin from your Plugin browser, or download the plugin and extract the files and upload <code>delete-thumbnails<\/code> to your <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<li>View the <em>Delete Thumbnails<\/em> interface under <em>Tools<\/em> in your Wordpress Admin<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>Installation Instructions<\/dt>\n<dd><ol>\n<li>Install the plugin from your Plugin browser, or download the plugin and extract the files and upload <code>delete-thumbnails<\/code> to your <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<li>View the <em>Delete Thumbnails<\/em> interface under <em>Tools<\/em> in your Wordpress Admin<\/li>\n<\/ol><\/dd>\n<dt>What parameters are used to determine if a image is resized?<\/dt>\n<dd><p>After looking at all files in the Wordpress uploads directory, a file is determined as resized when three criteria are meet:<\/p>\n\n<ol>\n<li>It's an image <\/li>\n<li>The file URL is not a main Wordpress Media Library file<\/li>\n<li>The filename ends with <code>-###-###.<\/code><\/li>\n<\/ol><\/dd>\n<dt>What is this warning about `chmod` about?<\/dt>\n<dd><p>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.<\/p><\/dd>\n<dt>It says I have no resized images, but I do<\/dt>\n<dd><p>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:<\/p>\n\n<ul>\n<li>Wordpress &amp; PHP version<\/li>\n<li>Location of directory<\/li>\n<li>Wether or not files are stored in year\/month sub folders<\/li>\n<li>ect.<\/li>\n<\/ul><\/dd>\n<dt>How do I backup my files?<\/dt>\n<dd><p>The plugin insists on backups as it removes files permanently, you can ignore and bypass, however you should always <a href=\"https:\/\/codex.wordpress.org\/WordPress_Backups#Backing_Up_Your_WordPress_Site\">backup your Wordpress installation<\/a><\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>2.2<\/h4>\n\n<ul>\n<li>July 6, 2017<\/li>\n<li>Fixed 3 instances of PHP shorttags which'd break plugin on most server setups<\/li>\n<\/ul>\n\n<h4>2.1<\/h4>\n\n<ul>\n<li>June 27, 2017<\/li>\n<li>Removed image header argument (seeing if image was compressed at Wordpress's default 82%) as it only works with resized JPG's, not PNGs<\/li>\n<\/ul>\n\n<h4>2.0<\/h4>\n\n<ul>\n<li>June 25, 2017<\/li>\n<li>Project revival <\/li>\n<li>Code overhaul\/rewrite<\/li>\n<li>Added better assets<\/li>\n<li>Much cleaner and Wordpress native looking interface, no more code-line look<\/li>\n<li>Readme, UI, and inline documentation corrected and improved<\/li>\n<li>Improved logic of deletion<\/li>\n<li>Improved logic for form submission with low <code>max_input_vars<\/code> values in mind<\/li>\n<li>better detection of thumbnails &amp; cross checking media library attachments<\/li>\n<\/ul>\n\n<h4>1.0<\/h4>\n\n<ul>\n<li>Sept 29, 2014<\/li>\n<li>Public Launch<\/li>\n<\/ul>\n\n<h4>0.1<\/h4>\n\n<ul>\n<li>July 6, 2014<\/li>\n<li>Initial Build, private use<\/li>\n<\/ul>","raw_excerpt":"Find and delete thumbnails &amp; resized images from your Media Library","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/cl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/32058","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/cl.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/cl.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=32058"}],"author":[{"embeddable":true,"href":"https:\/\/cl.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/davidsword"}],"wp:attachment":[{"href":"https:\/\/cl.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=32058"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/cl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=32058"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/cl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=32058"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/cl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=32058"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/cl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=32058"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/cl.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=32058"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}