Aspect ratio is the proportional relationship between an image’s width and height. A square uses equal dimensions; landscape images are wider than tall, while portrait images are taller than wide. section 1.2.4
In Stable Diffusion, choose width and height to control composition rather than chase maximum resolution. Changing the ratio can produce rectangular images and significantly change the generated result, even with the same seed. section 1.2.4 section 1.4
Use the image’s intended subject and setting to choose a shape:
- Choose landscape for wide scenes, counters, and other compositions that benefit from horizontal space. section 1.3.2
- Choose portrait for taller compositions, using the interface control to swap width and height. section 1.2.4
- Keep dimensions within supported values: Stable Diffusion generally requires multiples of 8, while multiples of 128 provide practical choices. section 1.2.4
- Watch total pixels because increasing width and height increases VRAM use and limits feasible image sizes. section 1.2.4
A coffee image in landscape
For “A cup of black coffee, on a diner counter,” try 512×384. The 4:3 landscape shape gives the counter room without requiring a high-resolution image. section 1.3.2
Use these practical dimension values when adjusting width and height. section 1.2.4


