I haven't found a way to scale based on aspect ratio:
Scaling with
keep aspect
option (chain icon) disabled can be used when fixing images stretched from 4:3 to a widescreen resolution, for example.
I can set resolution for my aspect ratio manually, but that of course isn't optimal.