---
title: "ImageTransformMode"
generated: true
---
<GenerationInfo sourceFile="packages/asset-server-plugin/src/types.ts" sourceLine="23" packageName="@vendure/asset-server-plugin" />

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.

```ts title="Signature"
type ImageTransformMode = 'crop' | 'resize'
```
