Square Thumbnails – Square Product Images Without Cropping
Turn product photos of any shape into matching square thumbnails, whole and centered on a background you choose, for an even WooCommerce grid.
Install in
Product photos rarely come in one shape. Put a tall bottle next to a wide shoe and your shop grid turns uneven. Crop them to match and the bottle loses its cap and the shoe loses its toe.
Square Thumbnails makes square product images without cropping. It scales the whole photo to fit inside a square and fills the space around it with a background you choose, so every thumbnail has the same shape and nothing is cut off.
How it makes square images
When you upload an image, WordPress creates its usual thumbnails. Square Thumbnails then saves a square version of each size, with the whole image placed on the background. The file you uploaded is never overwritten.
For images already in your library, the plugin has its own regeneration tool, so you don’t need a second plugin.
It works with JPEG, PNG and GIF, plus WebP, AVIF and BMP when your server’s PHP GD library supports them. The settings page lists what your server can process.
What you can set
- Thumbnail background: a custom color (white by default), the color of the image’s top-left pixel, or transparent.
- Alignment: left, center or right, and top, middle or bottom (center and middle by default).
- Image sizes: choose which sizes become square, with one-click selections for the WooCommerce or WordPress default sizes.
- Small images: set a minimum size, then leave smaller images as they are or process them anyway.
- JPEG quality: from 60 to 100 (90 by default).
- Regeneration: your whole library with a progress bar, one image from its details screen, or a selection from the Media Library.
Which sites it suits
- WooCommerce stores whose product images arrive in mixed shapes from suppliers, imports or data feeds (block-based shop pages have a limit, see the FAQ)
- Catalogs, portfolios and galleries built on a square grid
- Any WordPress site that needs square images. WooCommerce is optional.
Written by Joobi from the project's own listing. See the source page
2.5
- Security and reliability improvements.
- Compatibility with WordPress 7.1, current PHP and WooCommerce.
- Removed unused notices and sign-up forms.
- Added a dismissible recommendation on the settings page for WooCommerce stores.
- Added a one-time notice on the Dashboard after updating.
2.4.0
- Maintenance release.
2.3.8
- Fixed WooCommerce zoom gallery CSS issue when ‘tooriginal’ option is enabled
- Added additional validation for image dimensions to prevent PHP errors
- Added proper fallback dimensions for invalid source images
- Enhanced error handling for image processing
2.3.7
- Fixed PHP 8.2 compatibility issues
- Improved WooCommerce integration
- Fixed bug with transparent background handling
- Added: CSS fix for WooCommerce zoom gallery when tooriginal option is enabled (
.pswp__zoom-wrap img { height: auto !important; }) - Improved: Conditional loading of CSS only when needed
2.3.6
- Fixed: Critical PHP fatal error caused by imagecreatetruecolor() being called with invalid dimensions
- Improved: Added robust validation for image dimensions throughout the processing pipeline
- Fixed: Proper handling of zero or negative width/height values in thumbnail processing
- Enhanced: Better error logging for invalid image dimensions
- Added: Default fallback dimensions for invalid source images
- Improved: Protection against division by zero errors in image ratio calculations
2.3.5
- Fix to delete all thumbnails when an image is deleted from media. The same for the PNG set created if the background is set to transparent.
2.3.4
- There were some problems in regenerating and are all fixed.
2.3.3
- Fixing functionality.
2.3.0
- New Feature: Media Library integration for regenerating thumbnails
- Added: Regenerate button in attachment details screen
- Added: Bulk action “Regenerate Square Thumbnails” in Media Library
- Enhanced: Better user feedback with admin notices
- Improved: AJAX handling for single image regeneration
- New Feature: Bulk thumbnail regeneration with selective size processing
- Added: Progress tracking for regeneration with visual progress bar
- Added: Option to force regenerate existing thumbnails or only create missing ones
- Added: Batch processing for better performance (5 images at a time)
- Added: Separate quick selectors for regeneration section
- Enhanced: AJAX handling for smooth operation without page refresh
- Improved: Memory management during bulk operations
- Fixed: Image processing for individual thumbnail sizes
- Fixed: Selective size processing now works correctly
- New Feature: JPEG quality control setting (60-100%, default 90%)
- New Feature: Selective size processing – choose which image sizes to make square
- Added: Quick selector buttons for WooCommerce and WordPress default sizes
- Added: Visual highlighting for WooCommerce-specific image sizes
- Enhanced: Settings interface with better organization and controls
- Improved: Performance by only processing selected image sizes
2.2.0
- New Feature: Comprehensive small image handling system (configurable minimum size threshold of 50-1000 pixels, three action options for images below it, prevents WooCommerce product display failures)
- Added: “Small Image Handling” settings section (Minimum Image Size, default 200px, and Small Image Action)
- Fixed: Critical bug where products with small thumbnails wouldn’t display in WooCommerce
- Improved: Image processing logic for edge cases
- Enhanced: Admin interface with clearer options
- Added: Detailed logging for small image processing
- Compatibility: Better integration with WooCommerce product galleries
2.1.1
- Critical Fix: Users without manage_options capability (e.g., Authors, Contributors, Editors) can now properly access their profile page (/wp-admin/profile.php) and other admin areas
- Fix: Moved permission check from display_admin_page() to showPage() method to prevent global admin access blocking
- Security: Settings page remains properly protected – only administrators can access Square Thumbnails options
- Addresses reported issue: “Plugin is blocking access to /wp-admin/profile.php and /wp-admin/ in general to users without manage_options capability”
2.1.0
- New: Added transparent background option for square thumbnails
- New: Support for modern image formats including WebP and AVIF
- New: Added BMP format support with improved handling
- New: Format compatibility checker in settings page showing supported formats
- New: Elegant new settings page design with improved UI/UX
- New: Background type selector (Custom Color, Color from Image, Transparent)
- New: AJAX settings save with visual feedback
- New: Auto-hide/show options based on background type selection
- Improved: Enhanced error handling for unsupported formats
- Improved: Better memory management for large images
- Improved: Transparency support for PNG, WebP, and AVIF formats
- Improved: Added proper nonce security for settings save
- Improved: Sanitization of all input values
- Fixed: Settings not saving properly in some configurations
- Fixed: Color picker display issues
2.0.2
- Removed donation link in admin.
1.1.2
- Fixed all errors displayed in plugin check
1.1.1
- Fixed vulnerability reported by Wordfence: https://www.wordfence.com/threat-intel/vulnerabilities/id/31cc30c7-262d-4582-8976-fc8095bdca5f?source=api-prod
1.0.4
- Major update for the entire code and fixes for all bugs.
- New option to choose if the original image should also be put in a square
- New option to create all existing sizes, even if the original image is smaller than some of them. By default, WordPress doesn’t create thumbnails larger than the original image.
1.0.3
- Fixed the bug reported by @chuchilade and by @peer_012. The bug was caused by hex to rgb color conversion.
1.0.2
- Fix for eregi deprecation. Thanks to mjassen (https://wordpress.org/support/users/mjjojo/) for reporting this error and for helping to fix.
1.0.1
- Horizontal align of the image in the frame
- Vertical align of the image in the frame
- Set background color of the frame or check to automatically read the color from the image, point (0,0)
1.0
- Initial release.
Follow this listing's changes (Atom feed)