React Native Firebase
    Preparing search index...

    Variable ImagenAspectRatioConst Beta

    ImagenAspectRatio: {
        LANDSCAPE_16x9: "16:9";
        LANDSCAPE_3x4: "3:4";
        PORTRAIT_4x3: "4:3";
        PORTRAIT_9x16: "9:16";
        SQUARE: "1:1";
    } = ...

    Aspect ratios for Imagen images.

    To specify an aspect ratio for generated images, set the aspectRatio property in your ImagenGenerationConfig.

    See the documentation for more details and examples of the supported aspect ratios.

    Type Declaration

    • ReadonlyLANDSCAPE_16x9: "16:9"

      Landscape (16:9) aspect ratio.

    • ReadonlyLANDSCAPE_3x4: "3:4"

      Landscape (3:4) aspect ratio.

    • ReadonlyPORTRAIT_4x3: "4:3"

      Portrait (4:3) aspect ratio.

    • ReadonlyPORTRAIT_9x16: "9:16"

      Portrait (9:16) aspect ratio.

    • ReadonlySQUARE: "1:1"

      Square (1:1) aspect ratio.