Source image about 3000x2000px autorotated with EXIF Orientation: Rotate 90 CW.
image->height(600) respect EXIF autorotation but swaps width<->height.

Output image is cut off from the top and bottom. What should not happen.
Proportions also are broken.
File source image