Skip to main content

Module dimension

Module dimension 

Source
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.