# 2026-02-11 ## TGA Icon Converter Improvements ### AI Upscaling with Real-ESRGAN - Added `modules/ai_upscaler.py` - Real-ESRGAN integration for AI-powered upscaling - Designed specifically for low-res game textures/icons (not pixel art) - 4x upscale factor with neural network enhancement - Falls back gracefully if model not available - Only shown in UI if Real-ESRGAN is installed ### No Upscaling Option - Added "❌ No Upscaling" as the default option - Keeps original icon size, just centers on canvas - Useful when you want the icon at original resolution on a larger canvas ### Auto-Detection Fixes - Changed from `glob` to `rglob` to search ALL subfolders recursively - Now properly finds TGA files in version subfolders like `19.3.2.201024` - Shows relative paths in the file list ### Icon Cache Parser - Created `modules/icon_cache_parser.py` to parse `iconcache.dat` - Attempts to extract item names from the binary cache file - Uses heuristics: pattern matching for icon IDs, string extraction for names - Challenge: proprietary binary format with no public documentation ### Commits - `5374eba` - feat: add Real-ESRGAN AI upscaling support - `5ec7541` - feat: add "No Upscaling" option to TGA converter - `8f7c7cb` - fix: TGA converter improvements (auto-detection, defaults) ## Context User clarified that game icons are "not pixel icons really, just quite low res" - Real-ESRGAN is perfect for this use case (designed for rendered graphics, not pixel art).