=== Square Thumbnails === Contributors: ilmdesigns Donate link: https://www.paypal.com/paypalme/narcisbodea Tags: crop, woocommerce, square thumbnails Requires at least: 3.5 Tested up to: 6.8.1 Stable tag: 2.1.0 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html A plugin for creating square thumbnails from images, without cropping them. It is very useful for for products images in woocommerce. == Description == Square Thumbails is a plugin for creating square thumbnails from images, without cropping them. It is like when you set background image in CSS to contain. A plugin for creating square thumbnails from images, without cropping them. If the plugin is installed and activated, when you upload an image it will automatically create square thumbnails, for all sizes. If you use a plugin to regenerate the thumbnails, the plugin will create square thumbanails for all existing images. We needed this plugin to have square images not cropped for products in Woocommerce. square thumbnails, square no cropping, woocommerce, product image, creating all sizes == Installation == 1. Go to your admin area and select Plugins -> Add new from the menu. 1. Activate the plugin through the 'Plugins' menu in WordPress We tested it on wordpress versions starting with 3.4 and we found that is compatible starting with wordpress 3.5. It is also compatible with PHP 8.4. == Frequently Asked Questions == No questions yet. == Screenshots == Here is a screenshot with the same image uploaded, but without plugin activated and with crop checked in media settings, so you can see that the image is cut. 1. screenshot-1.png Here is a screen shot with an uploaded image when the plugin is activated. You can see that the image is visible without being cut and also the thumbnails are square. 2. screenshot-2.png == Changelog == = 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 Requirements Minimum Requirements - WordPress 5.0 or higher - PHP 7.2 or higher - GD Library enabled Recommended Requirements - WordPress 6.0 or higher - PHP 8.0 or higher - GD Library with WebP and AVIF support Supported Image Formats - Always supported: JPEG/JPG, PNG, GIF - Requires PHP with GD WebP support: WebP images - Requires PHP 8.1+ with GD AVIF support: AVIF images - Additional formats: BMP, WBMP (when available) Transparency Support - Transparency is supported for: PNG, WebP, AVIF - Transparency NOT supported for: JPEG/JPG, GIF, BMP - When transparency is selected for unsupported formats, a white background will be used Background Options 1. Custom Color - Choose any color for the background 2. Color from Image - Automatically use the top-left pixel color from the image 3. Transparent - Preserve transparency for PNG, WebP, and AVIF images Notes - WebP support requires PHP compiled with WebP support in GD library - AVIF support requires PHP 8.1+ and GD library compiled with AVIF support - Transparent backgrounds only work with formats that support alpha channel - Contact your hosting provider to enable modern image format support if not available = 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 A vulnerability in this plugin has been reported: 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. Some new options were added: - option to choose if original image should be also put in a square - option to choose if you want to be created all existing sizes, even if the original image is smaller than some of them. WP by default is not creating thumbnails larger than the original image is. = 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.