Skip to main content

Module thumbnail

Module thumbnail 

Source
Expand description

Thumbnail generation and caching service

Follows a modified freedesktop.org thumbnail spec:

  • Thumbnails stored on the drive itself for portability
  • Named by the indexed file fingerprint
  • Stored as JPEG for smaller size
  • Three thumbnail sizes and a source-resolution display rendition

Decode strategy:

  1. Reuse an adequate embedded EXIF thumbnail
  2. Fall back to bounded full decode when no adequate embedded preview exists
  3. Per-image timeout to prevent stuck queue from corrupt/huge images
  4. Priority-aware concurrency so visible cells beat background prewarm

Structs§

ThumbnailEntry
Cached thumbnail entry.
ThumbnailService
Thumbnail service with LRU cache management

Enums§

ThumbnailSize
Thumbnail size variants