RESIZE_MODE_FIT

Either the width or height is decreased to obtain the desired aspect ratio.