Dimensions and quality are different
The maximum long edge scales down without changing the aspect ratio; it never enlarges the source. Quality changes how much information the encoder preserves at those dimensions, so small text can develop artifacts.