AT_MOST
Downsamples so the image's largest dimension is between 1/2 the given dimensions and the given dimensions, with no restrictions on the image's smallest dimension.
Does not upscale if the requested dimensions are larger than the original dimensions.