In modern web designs, designers create different sizes of images on the web pages for attractive layout. If a web page is built using wordpress, a developer has to register every image size in theme to make sure, if client uploads an image of different size, it does not break the layout.
With a new WordPress installation, by default it creates three sizes e.g. thumbnail (150 x 150), medium (300×300), large (1024×1024) which means whenever a new image will be uploaded, WordPress will keep at least four copies of images on the server, one original image and 3 cropped image copies based on image sizes.
When developer/designer needs different size of image, they will register more image sizes e.g. hero, product thumbnail, product large image, team member image etc depending on design of the page.
Now lets say we have 3 default and 3 custom image sizes defined in theme, and now whenever a new image will be uploaded, WordPress will create 6 image copies and 1 original image even we need to use only 1 for a specific area on the website, remaining copies will remain on the server and will occupy space. Imagine when we have lots of posts, pages having different images, how many unnecessary images WordPress creates on the server which are useless and just eat server space. In case of Woo-Commerce website if you need to upload a new slider image for home page or a hero image for about page, it will create a lots of copies including different sizes of products image sizes which woo-commerce registers itself.
Ultimately website speed gets effected and server space as well.
To solve this issue, we built a plugin WP Image Sizes this plugin allows user to decide which image sizes should be created for every image being uploaded through WordPress.
After installing WP Image Sizes, it will create a setting page from where user can assign image sizes to each CPT. e.g. user can assign one size for hero/slider CPT, one size for team member, testimonials. After assigning image sizes to each CPT when user will upload a new image, WP Image Sizes will only allow WordPress to create copies of image sizes which were assigned to the CPT.
In case user tries to upload an image from a Media, it will show options in media uploader to select which image size user wants and WP Image Sizes will only create that image size.
WP Image Sizes plugin saves a lot of space on the server and plays a role to make WordPress website a bit fast.
WP Image Sizes plugin is also available in a professional version which includes more features See here
From your WordPress dashboard
- Visit Plugins > Add New
- Search for “WP Image Sizes”
- Install WP Image Sizes from search results
- Activate WP Image Sizes after plugin has been installed
- Click on the settings menu item “WP Image Sizes” and assign image sizes to every post types
Does it have a pro version?
Yes, a pro version is available with more features See here.
Does it cache images it creates?
No, It doesn’t create any cache images and the images created will not be broken even if the plugin is deactivate/removed.
Why use it?
WPIS becomes more useful when used with e-commerce plugins like woocommerce, woocommerce requires to create many image sizes for prdoucts. Whenever a user uploads a non-product image, wordpress creates all the images for woo-coomerce as well.
i.e User uploads an image for slider/banner, WordPress will also create image thumbnails for the products. WPIS helps to select only slider/banner size and avoid to generation of woocommerce versions of the image.
WP Image Sizes はオープンソースソフトウェアです。以下の人々がこのプラグインに貢献しています。貢献者
- Compatibility Check with WordPress 5.7.2
- Compatibility fix with pro version when generating runtime images
- Code changes for compatibility with pro version
- Media uploader image size checkboxes position changed
- Media uploader image size checkboxes loading approach changed
- Option to disable all image sizes added to wpis settings
- Bug fixes
- Disable sizes fixes
- Media upload image sizes bug fix
- Option to disable all image sizes added
- Session storage changed to fix register_globals conflict
- Plugin core changes
- WordPress 5.5.3 compatibility
- Session unset on settings save
- Redirect implemented on plugin activate
- Initial release of WP Image Sizes