That's cropping, which is separate from resizing.
Resizing will always preserve the content and ratio.
Or at least it should if it has been coded correctly.
The problem with resizing is if I set arbitrary values of e.g. 1920 x 1080, if someone was to upload a long, narrow image, it would be resized and lose a lot of definition due to being limited to 1080 pixels high.