This is the landscape16x9 aspect ratio rotated 90 degrees. This a relatively new aspect
ratio that has been popularized by short form video apps (for example, YouTube shorts). Use
this for tall objects with strong vertical orientations such as buildings, trees, waterfalls,
or other similar objects.
This ratio has replaced landscape4x3 as the most common aspect ratio for TVs, monitors,
and mobile phone screens (landscape). Use this aspect ratio when you want to capture more of
the background (for example, scenic landscapes).
This aspect ratio is commonly used in media or film. It is also the dimensions of most old
(non-widescreen) TVs and medium format cameras. It captures more of the scene horizontally
(compared to square1x1), making it a preferred aspect ratio for photography.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-05-20 UTC."],[],[],null,["# FirebaseAI Framework Reference\n\nImagenAspectRatio\n=================\n\n @available(iOS 15.0, macOS 12.0, tvOS 15.0, watchOS 8.0, *)\n public struct ImagenAspectRatio : Sendable\n\nAn aspect ratio for images generated by Imagen.\n\nTo specify an aspect ratio for generated images, set [aspectRatio](../Structs/ImagenGenerationConfig.html#/s:10FirebaseAI22ImagenGenerationConfigV11aspectRatioAA0c6AspectG0VSgvp) in\nyour [ImagenGenerationConfig](../Structs/ImagenGenerationConfig.html). See the [Cloud\ndocumentation](https://cloud.google.com/vertex-ai/generative-ai/docs/image/generate-images#aspect-ratio)\nfor more details and examples of the supported aspect ratios.\n- `\n ``\n ``\n `\n\n ### [square1x1](#/s:10FirebaseAI17ImagenAspectRatioV9square1x1ACvpZ)\n\n `\n ` \n Square (1:1) aspect ratio.\n\n Common uses for this aspect ratio include social media posts. \n\n #### Declaration\n\n Swift \n\n public static let square1x1: ImagenAspectRatio\n\n- `\n ``\n ``\n `\n\n ### [portrait9x16](#/s:10FirebaseAI17ImagenAspectRatioV12portrait9x16ACvpZ)\n\n `\n ` \n Portrait widescreen (9:16) aspect ratio.\n\n This is the [landscape16x9](../Structs/ImagenAspectRatio.html#/s:10FirebaseAI17ImagenAspectRatioV13landscape16x9ACvpZ) aspect ratio rotated 90 degrees. This a relatively new aspect\n ratio that has been popularized by short form video apps (for example, YouTube shorts). Use\n this for tall objects with strong vertical orientations such as buildings, trees, waterfalls,\n or other similar objects. \n\n #### Declaration\n\n Swift \n\n public static let portrait9x16: ImagenAspectRatio\n\n- `\n ``\n ``\n `\n\n ### [landscape16x9](#/s:10FirebaseAI17ImagenAspectRatioV13landscape16x9ACvpZ)\n\n `\n ` \n Widescreen (16:9) aspect ratio.\n\n This ratio has replaced [landscape4x3](../Structs/ImagenAspectRatio.html#/s:10FirebaseAI17ImagenAspectRatioV12landscape4x3ACvpZ) as the most common aspect ratio for TVs, monitors,\n and mobile phone screens (landscape). Use this aspect ratio when you want to capture more of\n the background (for example, scenic landscapes). \n\n #### Declaration\n\n Swift \n\n public static let landscape16x9: ImagenAspectRatio\n\n- `\n ``\n ``\n `\n\n ### [portrait3x4](#/s:10FirebaseAI17ImagenAspectRatioV11portrait3x4ACvpZ)\n\n `\n ` \n Portrait full screen (3:4) aspect ratio.\n\n This is the [landscape4x3](../Structs/ImagenAspectRatio.html#/s:10FirebaseAI17ImagenAspectRatioV12landscape4x3ACvpZ) aspect ratio rotated 90 degrees. This lets to capture more of\n the scene vertically compared to the [square1x1](../Structs/ImagenAspectRatio.html#/s:10FirebaseAI17ImagenAspectRatioV9square1x1ACvpZ) aspect ratio. \n\n #### Declaration\n\n Swift \n\n public static let portrait3x4: ImagenAspectRatio\n\n- `\n ``\n ``\n `\n\n ### [landscape4x3](#/s:10FirebaseAI17ImagenAspectRatioV12landscape4x3ACvpZ)\n\n `\n ` \n Fullscreen (4:3) aspect ratio.\n\n This aspect ratio is commonly used in media or film. It is also the dimensions of most old\n (non-widescreen) TVs and medium format cameras. It captures more of the scene horizontally\n (compared to [square1x1](../Structs/ImagenAspectRatio.html#/s:10FirebaseAI17ImagenAspectRatioV9square1x1ACvpZ)), making it a preferred aspect ratio for photography. \n\n #### Declaration\n\n Swift \n\n public static let landscape4x3: ImagenAspectRatio"]]