Skip to main content

ImageTransformMode

ImageTransformMode

Specifies the way in which an asset preview image will be resized to fit in the proscribed dimensions:

  • crop: crops the image to cover both provided dimensions
  • resize: Preserving aspect ratio, resizes the image to be as large as possible while ensuring its dimensions are less than or equal to both those specified.
Signature
type ImageTransformMode = 'crop' | 'resize'