=== WP Image Sizes ===
Contributors: aiwatech
Tags: images, sizes, thumbnails, gallery, image sizes, media uploader, media library, featured image, multiple image creation, selected image sizes, bulk image sizes, disable image sizes, prevent unnecessary images
Requires at least: 5.7.2
Requires PHP: 7.2
Stable tag: 1.2.0
Tested up to: 7.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Take control of the image sizes WordPress generates. Pick only the sizes you actually use, per post type, and reclaim wasted server space.

== Description ==

Every time you upload an image, WordPress doesn't just store your file — it generates a separate cropped copy for every registered image size. A fresh install already creates three (thumbnail, medium, and large) on top of the original, so a single upload becomes four files on your server.

Themes and plugins add many more. A typical site might register hero, slider, product thumbnail, team member, and testimonial sizes — and WooCommerce adds several of its own. With six registered sizes, one upload turns into seven files, even when the page only ever displays one of them. The rest sit on disk doing nothing but consuming space.

Multiply that across hundreds of posts, pages, and products and the waste adds up fast: bloated storage, slower backups, and longer upload processing. It's especially painful on WooCommerce sites, where uploading a single banner or hero image also generates the full set of product thumbnail sizes you'll never use for that image.

**WP Image Sizes fixes this by letting you decide which sizes WordPress is allowed to create.**

* **Per post type control** — Assign the exact image sizes that matter to each post type from a simple settings page. A slider post type might only need one large size; testimonials might only need a thumbnail.
* **Choose sizes at upload time** — When you add media, the uploader shows the available sizes so you can pick what gets generated for that specific upload.
* **Disable thumbnails entirely** — Skip generating any additional sizes for a post type or a single upload when you only need the original.
* **No lock-in** — WP Image Sizes never caches or alters your files. Any images already generated stay intact, even if you deactivate or remove the plugin.

The result is a leaner media library, less wasted disk space, and a faster, lighter WordPress site.


== Installation ==

From your WordPress dashboard

1. **Visit** Plugins > Add New
2. **Search** for "WP Image Sizes"
3. **Install** WP Image Sizes from search results
3. **Activate** WP Image Sizes after plugin has been installed
4. **Click** on the settings menu item "WP Image Sizes" and assign image sizes to every post types

== Frequently Asked Questions ==

= How do I choose which image sizes are created? =
After activating, open "WP Image Sizes" from the admin menu and check the sizes you want for each post type. Only the checked sizes are generated when an image is uploaded for that post type. You can also pick sizes directly in the media uploader for an individual upload.

= What happens if I leave all sizes unchecked for a post type? =
All available image sizes are generated for that post type — the same as default WordPress behaviour. Checking sizes is what limits generation, so an empty selection means "create everything".

= Can I stop WordPress creating any extra sizes at all? =
Yes. Each post type has a "Disable thumbnail creation" option that keeps only the original uploaded image and skips every additional size.

= Does this delete or modify images I have already uploaded? =
No. WP Image Sizes only controls which sizes are generated for new uploads. Existing images are never changed or deleted.

= What happens to my images if I deactivate the plugin? =
Nothing breaks. Any sizes already generated stay in place, and WordPress simply goes back to creating every registered size on new uploads.

= Can I create or delete sizes for images I have already uploaded? =
The free plugin only affects new uploads. To bulk-create or bulk-delete sizes across your existing media, use [WP Image Sizes Pro](https://aiwatech.com/product/wp-image-sizes-pro/).

= Does it work with WooCommerce? =
Yes, and it's especially useful there. WooCommerce registers many product image sizes, so by default every upload generates all of them — even images that have nothing to do with a product. For example, uploading a slider or banner image still creates the full set of WooCommerce product thumbnails. WP Image Sizes lets you generate only the size you need and skip the rest.

= Does it cache the images it creates? =
No. WP Image Sizes doesn't create any cached copies, and the images it does generate stay intact even if the plugin is deactivated or removed.

= Does it have a pro version? =
Yes. WP Image Sizes Pro adds bulk creation and deletion of image sizes for existing media, plus on-the-fly generation of missing sizes. [Get WP Image Sizes Pro](https://aiwatech.com/product/wp-image-sizes-pro/).


== PRO ==

The free plugin controls which sizes get generated on new uploads. **WP Image Sizes Pro** extends this to your *existing* media and adds automation:

* **Bulk Create Image Sizes** — Generate selected image sizes for all existing images of a chosen post type. Perfect after registering a new size or switching themes.
* **Bulk Delete Image Sizes** — Remove unwanted image size files from existing media to reclaim server space in one click.
* **Create Images on Runtime** — Automatically generate a missing image size the moment it is first requested on the front end, instead of pre-creating every size.

[Get WP Image Sizes Pro](https://aiwatech.com/product/wp-image-sizes-pro/)


== Screenshots ==
1. Assignment of image sizes to post types
2. The image sizes will show in media uploader
3. ProFeature - Create batch/bulk image sizes for selected post types
4. ProFeature - Delete batch/bulk image sizes for selected post types

== Changelog ==
= 1.2.0 =
* Restyled the settings-page notices to match the standard WordPress admin style
* Improved the wording of the settings help text and the Pro feature descriptions
* Added developer extension points so add-ons can register their own settings tabs (wpis_settings_tabs, wpis_settings_tab_template), toggle the Save button (wpis_settings_show_save_button), detect Pro (wpis_is_pro_active) and enqueue admin assets (wpis_enqueue_admin_assets)
= 1.1.5 =
* Moved the settings page to a top-level admin menu with its own icon
* Added a "Settings" link to the plugin row on the Plugins page
* Compatibility check with WordPress 7.0
= 1.1.4 =
* Compatibility Check with Wordpress 6.8.3
= 1.1.3 = 
* Compatibility Check with Wordpress 5.7.2
= 1.1.2 = 
* Compatibility fix with pro version when generating runtime images
= 1.1.1 = 
* Code changes for compatibility with pro version

= 1.1.0 = 
* Media uploader image size checkboxes position changed
* Media uploader image size checkboxes loading approach changed

= 1.0.8 = 
* Option to disable all image sizes added to wpis settings

= 1.0.7 = 
* Bug fixes

= 1.0.6 = 
* Disable sizes fixes

= 1.0.4 = 
* Media upload image sizes bug fix
* Option to disable all image sizes added

= 1.0.3 = 
* Session storage changed to fix register_globals conflict

= 1.0.2 = 
* Plugin core changes
* Wordpress 5.5.3 compatibility

= 1.0.1 = 
* Session unset on settings save
* Redirect implemented on plugin activate

= 1.0.0 = 
* Initial release of WP Image Sizes