GitHub

ShopifyMediaImage

Type

import { ShopifyMediaImage } from '@daffodil/driver/shopify'

An image hosted on Shopify's content delivery network (CDN). Used for product images, brand logos, and other visual content across the storefront.

The image field provides the actual image data with transformation options. Implements the Media interface alongside other media types like Video and Model3d.

interface ShopifyMediaImage {
  __typename: "MediaImage"
  alt: string
  id: string
  image: ShopifyImage
  mediaContentType: ShopifyMediaContentType
  presentation: ShopifyMediaPresentation
  previewImage: ShopifyImage
}

Properties

__typename
"MediaImage"
alt
string

A word or phrase to share the nature or contents of a media.

id
string

A globally-unique ID.

image
ShopifyImage

The image for the media.

mediaContentType
ShopifyMediaContentType

The media content type.

presentation
ShopifyMediaPresentation

The presentation for a media.

previewImage
ShopifyImage

The preview image for the media.