How this works

Enter a width, a height, or both — with "keep aspect ratio" on, giving just one dimension calculates the other automatically so nothing gets stretched or squashed. Giving both fits the image inside that box while preserving its proportions, rather than forcing an exact stretch.