Expand description
Defines thumbnail dimensions and scaling rules.
A dimension carries the requested extent and resize method, then normalizes them to the bounded variants stored by the media service.
Re-exportsยง
use std::cmp::min;๐use std::num::Saturating as Sat;๐use ruma::UInt;๐use ruma::media::Method;๐use tuwunel_core::Result;๐use tuwunel_core::checked;๐use tuwunel_core::err;๐use tuwunel_core::implement;๐
Structsยง
- Dim
- Dimension specification for a thumbnail.