pub fn fit_size(
w: u32,
h: u32,
max_side: u32,
max_bytes: usize,
) -> Option<(u32, u32)>Expand description
The size a w x h picture is decoded at: at most max_side on its
longer side, then halved until it takes no more than max_bytes of
RGBA. None when not even one pixel fits.