Zuotu - AI makes drawing so easy.

Gallery 8,000+ | Start Drawing | Price | Sign Up & Log In | 切成中文

Explanation and Example of --ar Parameter

In AI painting, the --ar parameter is used to specify the Aspect Ratio for image generation. The aspect ratio determines the width-to-height ratio of the generated image. For example, an image with a 1:1 aspect ratio is a square, while a 16:9 aspect ratio represents a typical widescreen format.



Common --ar parameter values and meanings

  • --ar 1:1: Generates a square image, the most common ratio suitable for social media platforms like Instagram.
  • --ar 16:9: Generates a widescreen image, typically used for film, wallpapers, or horizontal content.
  • --ar 4:3: Classic photography and monitor ratio, slightly wider than 16:9.
  • --ar 9:16: Vertical widescreen ratio, commonly used for vertical display on mobile screens or poster design.
  • --ar ...: You can customize this value...


Usage Examples

  • Square image: a futuristic cityscape --ar 1:1
  • Widescreen image: a beautiful mountain landscape --ar 16:9
  • Vertical image: a portrait of a medieval knight --ar 9:16

Notes

  • The --ar parameter affects the composition and layout of the image. Choosing the appropriate aspect ratio when dealing with complex scenes helps to better showcase elements. For example, a widescreen ratio may be more suitable for horizontal scenes (such as landscapes or large scenes), while a vertical ratio is suitable for single-person or vertical scenes.
  • Choosing the right --ar parameter can greatly enhance the visual effect, ensuring that the generated image fits your presentation needs.

Example:

Red car

Without adding the --ar parameter, the default image output is a square with a 1:1 aspect ratio


Red car --ar 16:9

After adding the --ar 16:9 parameter, the output is a landscape image with a 16:9 aspect ratio


Red car --ar 9:16

After adding the --ar 9:16 parameter, the output is a portrait image with a 9:16 aspect ratio



In practical applications, you can customize your own ratios.

Getting Started with AI Drawing
Related Content