import { ShopifyImageTransformInput } from '@daffodil/driver/shopify'
The available options for transforming an image.
All transformation options are considered best effort. Any transformation that the original image type doesn't support will be ignored.
interface ShopifyImageTransformInput {
crop: ShopifyCropRegion
maxHeight: number
maxWidth: number
preferredContentType: ShopifyImageContentType
scale: number
}
crop ShopifyCropRegion |
|---|
The region of the image to remain after cropping.
Must be used in conjunction with the |
maxHeight number |
|---|
Image height in pixels between 1 and 5760. |
maxWidth number |
|---|
Image width in pixels between 1 and 5760. |
preferredContentType ShopifyImageContentType |
|---|
Convert the source image into the preferred content type.
Supported conversions: |
scale number |
|---|
Image size multiplier for high-resolution retina displays. Must be within 1..3. |