- Now checks 2 levels deep for TGA files (handles version subfolders like 19.3.2.201024)
- convert_cache_folder now uses rglob to find TGA files in all subfolders
- Will auto-detect the version folder in ProgramData
The _apply_canvas method existed but was never called in convert_tga_to_png.
Now properly applies canvas sizing in both PIL and manual conversion paths.
- Removed WebP support (PNG only now)
- Added canvas size selector: Original, 64x64, 128x128, 256x256, 280x280, 320x320, 512x512
- Icons are centered on transparent canvas
- Added 'Upscale small icons' checkbox to scale up small icons to better fill canvas
- Uses high-quality Lanczos resampling for upscaling
- Default canvas size: 320x320
- Updated TGAConverter.convert_tga_to_png() to support 'webp' format
- High quality WebP encoding (quality=95, method=6)
- Added format selector in UI (PNG or WebP)
- Convert button text updates based on selected format
- WebP is better for web uploads: smaller files, better quality
WebP advantages:
- 25-35% smaller file size than PNG
- Better quality at same file size
- Alpha channel support
- Widely supported in modern browsers
- PIL handles more TGA formats correctly
- Manual parser fixed to properly skip ID and color map fields
- Added better error messages with expected vs actual data size
- Fallback chain: PIL first, then manual parser
- Added: C:\ProgramData\Entropia Universe\public_users_data\cache\icon
- Now searches version subfolders (e.g., 19.3.2.201024)
- Also searches ProgramData recursively as fallback
- New module: modules/tga_converter.py
- Reads Truevision TGA format from game cache
- Converts to PNG with proper color handling (BGR->RGB)
- Auto-detects cache folder location
- Batch conversion support
- Handles alpha channels
- New dialog: ui/tga_converter_dialog.py
- Visual interface for TGA conversion
- Shows list of cached .tga files
- Progress tracking during conversion
- One-click convert all
- Added to Tools → Computer Vision → TGA Icon Converter (Ctrl+T)
This is much more efficient than extracting icons from screenshots!
The game already has the icons in cache as .tga files.