pub fn fit(w: i32, h: i32, max_side: u32) -> (i32, i32)
The size to scale a w × h picture to so its long side is at most max_side, never enlarging.
w
h
max_side