# Square Thumbnails - Version 2.1.1 Changelog

## Release Date: January 15, 2024

### Critical Fix
- Fixed permission check that was blocking access to `/wp-admin/profile.php` and other admin areas for users without `manage_options` capability (Authors, Contributors, Editors)
- Permission check now only applies to the Square Thumbnails settings page, as intended

### New Features
- Added small image handling options to prevent WooCommerce display issues
- Added Minimum Image Size setting (default: 200 pixels)
- Added Small Image Action options:
  - Skip processing (keep original)
  - Process anyway (centered on canvas)
  - Show error message
- These options prevent the issue where products with small images wouldn't display at all in WooCommerce

### Bug Fixes
- Fixed issue where images smaller than 200×200 pixels could cause products to not display in WooCommerce
- Improved error handling for small images
- Added debug logging for small image processing

### Settings Page Improvements
- Added new "Small Image Handling" section with configurable options
- Updated UI to match modern WordPress design patterns
- Improved visual consistency and user experience

### Security
- Maintained proper access control for plugin settings page (administrators only)
- Settings page remains protected while allowing proper access to other admin areas

### Technical Improvements
- Enhanced error handling and logging
- Better compatibility with WooCommerce product displays
- Improved image processing logic for edge cases

### Version History
- v2.1.0: Added support for modern image formats (WebP, AVIF)
- v2.1.1: Fixed permission issues and added small image handling
- v2.2.0: New Feature: Small image handling to prevent WooCommerce display issues
- v2.3.0: Adds Media Library integration for regenerating thumbnails. Now you can regenerate square thumbnails directly from the Media Library for individual images or in bulk.
Adds bulk thumbnail regeneration with selective size processing. Includes progress tracking and batch processing for better performance.
Adds JPEG quality control and selective size processing. Perfect for optimizing WooCommerce stores by only processing needed image sizes.

---

## Upgrade Notes
This update includes critical fixes for user permission issues and WooCommerce compatibility. It's recommended to update immediately if you've experienced issues with:
- Non-admin users unable to access their profile pages
- WooCommerce products not displaying due to small thumbnail images
