requiredScale spec sz returns a scaling factor necessary to
make something of size sz fit the requested size spec,
without changing the aspect ratio. Hence an explicit
specification of both dimensions may not be honored if the aspect
ratios do not match; in that case the scaling will be as large as
possible so that the object still fits within the requested size.