Typescript SDK Type Docs
    Preparing search index...

    Interface Image

    An Image uploaded to commercetools Composable Commerce is stored in a Content Delivery Network and it's available in several pre-defined sizes. If you already have an image stored on an external service, you can save the URL when creating a new product or adding a variant, or you can add it later.

    interface Image {
        dimensions: AssetDimensions;
        label?: string;
        url: string;
    }
    Index

    Properties

    Properties

    dimensions: AssetDimensions

    Dimensions of the original image. This can be used by your application, for example, to determine whether the image is large enough to display a zoom view.

    label?: string

    Custom label that can be used, for example, as an image description.

    url: string

    URL of the image in its original size. The URL must be unique within a single variant. It can be used to obtain the image in different sizes.