---
id: attachment-image-file-data-resizing-type-enum
title: AttachmentImageFileDataResizingTypeEnum
---

Defines how imgproxy will resize the source image.

```graphql
enum AttachmentImageFileDataResizingTypeEnum {
  auto
  fill
  fit
}
```

### Values

#### [`AttachmentImageFileDataResizingTypeEnum.auto`](#auto) {#auto}

If both source and resulting dimensions have the same orientation (portrait or
landscape), imgproxy will use fill. Otherwise, it will use fit.

#### [`AttachmentImageFileDataResizingTypeEnum.fill`](#fill) {#fill}

Resizes the image while keeping aspect ratio to fill given size and cropping projecting parts.

#### [`AttachmentImageFileDataResizingTypeEnum.fit`](#fit) {#fit}

Resizes the image while keeping aspect ratio to fit given size.
