Changeset 3420166
- Timestamp:
- 12/15/2025 01:12:11 PM (4 months ago)
- Location:
- liteimage/trunk
- Files:
-
- 4 edited
-
CHANGELOG.md (modified) (1 diff)
-
liteimage.php (modified) (1 diff)
-
src/Image/ThumbnailGenerator.php (modified) (1 diff)
-
src/Plugin.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
liteimage/trunk/CHANGELOG.md
r3392391 r3420166 5 5 The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), 6 6 and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). 7 8 ## [3.3.1] - 2025-12-15 9 10 > **🐛 Bugfix Release: Unique Thumbnail Filenames** 11 > 12 > Fixes thumbnail filename conflicts when multiple images share the same filename. 13 14 ### 🐛 Fixed 15 16 - **Thumbnail Generation**: Added attachment ID to thumbnail filenames to ensure uniqueness when multiple images have identical filenames. This prevents WordPress from serving incorrect thumbnails when images share the same base filename. 17 - Format changed from: `{filename}-{size_name}.{ext}` 18 - To: `{filename}-{attachment_id}-{size_name}.{ext}` 19 - Affects all thumbnail variants: WebP, original format, and retina (@2x) versions 20 21 ### Technical Details 22 23 - `src/Image/ThumbnailGenerator.php` – Updated `generate_thumbnails()` method to include attachment ID in all generated thumbnail filenames (WebP, original format, retina variants) 24 - Thumbnail cleanup functionality remains unchanged and works correctly with the new naming format 7 25 8 26 ## [3.3.0] - 2025-11-07 -
liteimage/trunk/liteimage.php
r3392391 r3420166 4 4 Plugin Name: LiteImage 5 5 Description: Optimizes images with dynamic thumbnails, WebP support, and accessibility. 6 Version: 3.3. 06 Version: 3.3.1 7 7 Author: Oleksandr Gryshko 8 8 Author URI: https://github.com/Sanetchek -
liteimage/trunk/src/Image/ThumbnailGenerator.php
r3392779 r3420166 143 143 $webp_path = str_replace( 144 144 basename($file_path), 145 basename($file_path, '.' . $original_extension) . "-$ size_name.webp",145 basename($file_path, '.' . $original_extension) . "-$attachment_id-$size_name.webp", 146 146 $file_path 147 147 ); 148 148 $orig_ext_path = str_replace( 149 149 basename($file_path), 150 basename($file_path, '.' . $original_extension) . "-$ size_name." . $original_extension,150 basename($file_path, '.' . $original_extension) . "-$attachment_id-$size_name." . $original_extension, 151 151 $file_path 152 152 ); 153 153 $retina_webp_path = str_replace( 154 154 basename($file_path), 155 basename($file_path, '.' . $original_extension) . "-$ retina_size_name.webp",155 basename($file_path, '.' . $original_extension) . "-$attachment_id-$retina_size_name.webp", 156 156 $file_path 157 157 ); 158 158 $retina_orig_path = str_replace( 159 159 basename($file_path), 160 basename($file_path, '.' . $original_extension) . "-$ retina_size_name." . $original_extension,160 basename($file_path, '.' . $original_extension) . "-$attachment_id-$retina_size_name." . $original_extension, 161 161 $file_path 162 162 ); -
liteimage/trunk/src/Plugin.php
r3392391 r3420166 35 35 * @var string 36 36 */ 37 const VERSION = '3.3. 0';37 const VERSION = '3.3.1'; 38 38 39 39 /**
Note: See TracChangeset
for help on using the changeset viewer.