Calculate the pixel size required to fit/fill the source dimensions inside the destination size while preserving aspect ratio.