GitHub

ShopifyImageTransformedSrcArgs

Type

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

An image resource with URL, dimensions, and transformation options. Used for product images, collection images, media previews, and other visual content throughout the storefront.

The url field accepts an ImageTransformInput argument for resizing, cropping, scaling for retina displays, and converting between image formats. Use the thumbhash field to display lightweight placeholders while images load.

interface ShopifyImageTransformedSrcArgs {
  crop: ShopifyCropRegion
  maxHeight: number
  maxWidth: number
  preferredContentType: ShopifyImageContentType
  scale: number
}