pub fn shown_size(size: (u32, u32), width: f32) -> SizeExpand description
How large a picture is shown, given its size in pixels and the width there is for it: scaled down to that width, as tall as that makes it, and never scaled up.
This is what the image widget does with ContentFit::Contain, a Fill
width that stops at the picture’s own and a Shrink height, written out
so that the placeholder and the estimate of a row’s height agree with it.