Create and delete additional image sizes for your WordPress site/blog as well as resize the predefined WordPress sizes.
With the addition of the featured image post thumbnail feature WordPress introduced new functions for theme and plugin developers to use to add new image sizes. Sizes added this way do not show up to be inserted in posts/pages/custom but are created everytime an image is uploaded. We list them here to let you know they exist and for now to let you know we are aware of them and will not attempt to delete or edit them in anyway.
We are looking into this. The problem is that once this script starts running it is incredibly taxing on the server. It would be inappropriate to let this script run for very long especially on shared hosting.
However because of our fabulous tester Ami who has over 23,000 images on a particular server we are looking into options to make the creation of new sizes less time consuming.
The native method of adding images via the WordPress api uses two functions in particular for theme and
plugin developers to add new sizes.
add_image_size(). We know the name
of the 'post-thumbnail' size and protect that size by default. However, if you were
using a theme or plugin that used
add_image_size() but have since switched to a theme or plugin that does
not use those named sizes of image files will still exist on your server but no longer be referenced except in the
attachment metadata. Unfortunately at this time we have no way of telling the difference between those sizes
you may need later and sizes you have created and deleted. If you think you might switch back to one of those
themes or plugins you should not use the delete feature of this plugin OR use on the workaround provided below.
However, there is a simple workaround if you are comfortable editing your theme functions.php. By simply
add_image_size( 'NAME OF IMAGE SIZE', width, height, TRUE|FALSE ) you will effectively hide it from this plugin.
The downside to this method is that you really need to match the original name, width, height, and crop setting for it
to be truly useful if you ever switch back to the theme or plugin that needed those sizes. If these were larger images
then you are needlessly storing excessive image sizes for possibly no reason.
Alternatively you can add that named size to your custom list of sizes and set it to a really small image size (e.g. 10x10 cropped).
This will allow accomplish the same thing as the above workaround except it will only be creating a tiny extra image size.
Then if you ever switch back to the the theme or plugin that uses those sizes (they will appear italicized and undeletable in your
custom size list) you can simply recreate the appropriate sizes for the
add_image_size() sizes and then delete it from your
custom list again.
Up to you.
Requires: 3.0 or higher
Compatible up to: 3.1.4
Last Updated: 6 years ago
Active Installs: 5,000+
Got something to say? Need help?