Expand description
Thumbnail cache and image-URL commands.
TRACES: UR-007 | JA-028 | DR-016
Structsยง
- GetImage
Request - Request to get an image URL (with caching)
Staticsยง
- IMAGE_
DOWNLOAD_ ๐SEMAPHORE - Limit concurrent image downloads to avoid saturating the connection pool. Without this, rendering a page with hundreds of album cards fires hundreds of concurrent HTTP requests, starving API calls and causing timeouts.
Functionsยง
- image_
get_ url - Get image as base64 data URL, caching if not already cached This extends the thumbnail system to serve all images through Rust with automatic caching
- image_
semaphore ๐ - mime_
from_ ๐ext - thumbnail_
clear_ cache - Clear all cached thumbnails
- thumbnail_
delete_ item - Delete cached thumbnails for a specific item
- thumbnail_
get_ cached - Get cached thumbnail path, returns None if not cached Also updates last_accessed timestamp for LRU tracking
- thumbnail_
get_ stats - Get thumbnail cache statistics
- thumbnail_
save - Download and save a thumbnail to cache Returns the local file path on success
- thumbnail_
set_ limit - Set thumbnail cache storage limit in bytes