Expand description
Thumbnail generation and caching service
Follows a modified freedesktop.org thumbnail spec:
- Thumbnails stored on the drive itself for portability
- Named by SHA256 hash of file path
- Stored as JPEG for smaller size
- Three sizes: 128, 256, 512
Performance strategy (matches production photo apps):
- Extract embedded EXIF thumbnail first (~2ms vs ~200-500ms for full decode)
- Fall back to bounded full decode when no adequate embedded preview exists
- Per-image timeout to prevent stuck queue from corrupt/huge images
- Priority-aware concurrency so visible cells beat background prewarm
Structs§
- Thumbnail
Entry - Cached thumbnail entry.
- Thumbnail
Service - Thumbnail service with LRU cache management
Enums§
- Thumbnail
Size - Thumbnail size variants