liveBook · Manning

Aspect ratio

As explained in Local Image Generation

An aspect ratio is the proportional relationship between an image's width and height.

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

128, 256, 384, 512, 640, 768, 896, 1024

Use these practical dimension values when adjusting width and height. section 1.2.4

How Local Image Generation covers it

How deep it goes
Explains orientation, supported dimensions, seed comparison, and VRAM tradeoffs, but defers higher-resolution generation techniques.
Examples
Uses 5:3 landscape, 3:5 portrait, 3:7, 4:1, and 512×384 coffee-counter examples.
What it assumes
Assumes familiarity with Stable Diffusion image generation and basic width and height controls.
What you can do after
Apply aspect ratios through A1111 width and height controls to shape compositions and compare generated results.
How it connects
Connects aspect ratio with image dimensions, image generation, seeds, prompts, composition, and VRAM.

Also explained in

Compare how 3 books explain aspect ratio →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Local Image Generation. The section links point to the parts of the book it draws on.