WordPress.org

Plugin Directory

!This plugin hasn't been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Additional image sizes (zui)

Create and delete additional image sizes for your WordPress site/blog as well as resize the predefined WordPress sizes.

What are the italicized undeletable images sizes in my list? e.g. post-thumbnail

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.

Is there a way to automate the creation of new image sizes instead of doing batches manually?

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.

Why are there so many images AISZ wants to delete the first time I run "Delete images..."

The native method of adding images via the WordPress api uses two functions in particular for theme and plugin developers to add new sizes. set_post_thumbnail_size() and 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 adding 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: 2011-2-20
Active Installs: 7,000+

Ratings

0 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,1,1
100,1,1 100,1,1 100,1,1 100,1,1
100,1,1 100,1,1 100,1,1 100,1,1
100,1,1 100,3,3
50,2,1
100,2,2
100,1,1
100,4,4
0,1,0
100,3,3
100,2,2
50,2,1
0,1,0
0,4,0
0,2,0
0,1,0