pub fn load_thumbnail(path: &Path, max_dim: u32) -> Result<Thumbnail>Expand description
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.