ImageTransformMode

ImageTransformMode

Documentation generated from default-asset-server-plugin.ts on Feb 19 2019 at 16:20

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'
alpha