Skip to main content

Module thumbnail

Module thumbnail 

Source
Expand description

Series preview thumbnails for the sidebar.

Decodes the first instance of a series at heavily-decimated resolution and applies an auto window/level. Result is a small RGBA buffer ready for ColorImage::from_rgba_unmultiplied.

Structs§

Thumbnail
Small RGBA buffer ready for ColorImage::from_rgba_unmultiplied.

Functions§

load_thumbnail
Render a square-ish thumbnail no larger than max_dim per side. We reuse load_raw (which already caps at MAX_DISPLAY_DIM) and then decimate further by nearest-neighbour. This avoids dragging in any extra image-resize crate.