img2img: max resolution cap for Resize by

Author: sweetyshots123Created Sep 12, 2026Updated Sep 12, 2026

Two related pain points in img2img resize:

1. Resize by
Scale only multiplies the source (e.g. 2048² × 0.9 → 1856²). There is no ceiling. In a batch some images are much larger, so the same Scale OOMs on those and is fine on the rest. You have to move resize again for every new image with a different resolution.

An optional max side / max megapixels (0 = off) would clamp uniformly, keep aspect ratio, and leave Scale unchanged across mixed inputs.

2. Resize to
Today both width and height are independent. It would help if you could lock aspect ratio to one side: set width or height, and have the other computed from the source so the image is not stretched or arbitrarily cropped.

Thanks

Source: lllyasviel/stable-diffusion-webui-forge