---
title: ResizeAlgorithm
summary: / ResizeAlgorithm specifies the resizing filter used to generate a new image with a higher or lower / number of pixels.
url: https://www.fastly.com/documentation/reference/compute/sdks/go/compute-sdk-go/fsthttp/imageopto/enum.ResizeAlgorithm/
---

**Kind:** Enum  
**Module:** [imageopto](https://www.fastly.com/documentation/reference/compute/sdks/go/compute-sdk-go/fsthttp/imageopto/)  
**Package:** compute-sdk-go v1.11.0  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/imageopto/imageopto.go#L580

```go
type ResizeAlgorithm string
```

Alias for `string`.

/ ResizeAlgorithm specifies the resizing filter used to generate a new image with a higher or lower
/ number of pixels.

## Methods

### String

**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/imageopto/imageopto.go#L597

```go
func (r ResizeAlgorithm) String() string
```

**Returns**

`string`
