---
title: imageopto
url: https://www.fastly.com/documentation/reference/compute/sdks/go/compute-sdk-go/fsthttp/imageopto/
---

**Kind:** Module  
**Package:** compute-sdk-go v1.11.0  
**Path:** `github.com/fastly/compute-sdk-go/fsthttp/imageopto`

## Structs

| Name | Summary |
| --- | --- |
| [Area](https://www.fastly.com/documentation/reference/compute/sdks/go/compute-sdk-go/fsthttp/imageopto/struct.Area/) | Area is an image area. |
| [BlurMode](https://www.fastly.com/documentation/reference/compute/sdks/go/compute-sdk-go/fsthttp/imageopto/struct.BlurMode/) | BlurMode specifies the Gaussian Blur to apply to the image. |
| [BWMode](https://www.fastly.com/documentation/reference/compute/sdks/go/compute-sdk-go/fsthttp/imageopto/struct.BWMode/) | BWMode specifies how the image should be converted to black and white duotone. |
| [Canvas](https://www.fastly.com/documentation/reference/compute/sdks/go/compute-sdk-go/fsthttp/imageopto/struct.Canvas/) | Canvas is the size of an image canvas. |
| [Crop](https://www.fastly.com/documentation/reference/compute/sdks/go/compute-sdk-go/fsthttp/imageopto/struct.Crop/) | Crop removes pixels from an image. |
| [HexColor](https://www.fastly.com/documentation/reference/compute/sdks/go/compute-sdk-go/fsthttp/imageopto/struct.HexColor/) | HexColor is a hex color |
| [Options](https://www.fastly.com/documentation/reference/compute/sdks/go/compute-sdk-go/fsthttp/imageopto/struct.Options/) | Options contains options that correspond to the public ImageOptimzation API. |
| [Position](https://www.fastly.com/documentation/reference/compute/sdks/go/compute-sdk-go/fsthttp/imageopto/struct.Position/) | Position is a position within an image. |
| [Sharpen](https://www.fastly.com/documentation/reference/compute/sdks/go/compute-sdk-go/fsthttp/imageopto/struct.Sharpen/) | Sharpen specifies options for increasing the definition of the edges of objects in an image. |
| [Sides](https://www.fastly.com/documentation/reference/compute/sdks/go/compute-sdk-go/fsthttp/imageopto/struct.Sides/) | Sides specifies a border around an image for adding or removing pixels. |
| [TrimColor](https://www.fastly.com/documentation/reference/compute/sdks/go/compute-sdk-go/fsthttp/imageopto/struct.TrimColor/) | TrimColor identifies a rectangular border based on specified color and removes this / border from the edges of an image. |

## Enums

| Name | Summary |
| --- | --- |
| [Auto](https://www.fastly.com/documentation/reference/compute/sdks/go/compute-sdk-go/fsthttp/imageopto/enum.Auto/) | Auto enables optimizations based on content negotiation. |
| [EnableOpt](https://www.fastly.com/documentation/reference/compute/sdks/go/compute-sdk-go/fsthttp/imageopto/enum.EnableOpt/) | EnableOpt specifies features that are disabled by default, but can be requested to be enabled. |
| [Fit](https://www.fastly.com/documentation/reference/compute/sdks/go/compute-sdk-go/fsthttp/imageopto/enum.Fit/) | Fit controls how the image will be constrained within the provided size (width and height) values, in order to maintain the correct proportions. |
| [Format](https://www.fastly.com/documentation/reference/compute/sdks/go/compute-sdk-go/fsthttp/imageopto/enum.Format/) | Format is the desired output encoding for the image. |
| [Level](https://www.fastly.com/documentation/reference/compute/sdks/go/compute-sdk-go/fsthttp/imageopto/enum.Level/) | Level specifies a set of constraints indicating a degree of required decoder performance for a profile. |
| [Metadata](https://www.fastly.com/documentation/reference/compute/sdks/go/compute-sdk-go/fsthttp/imageopto/enum.Metadata/) | Metadata controls what metadata to preserve in the image. |
| [OptimizeLevel](https://www.fastly.com/documentation/reference/compute/sdks/go/compute-sdk-go/fsthttp/imageopto/enum.OptimizeLevel/) | OptimizeLevel specifies the desired level of image compression. |
| [Orientation](https://www.fastly.com/documentation/reference/compute/sdks/go/compute-sdk-go/fsthttp/imageopto/enum.Orientation/) | / Orientation specifies the cardinal orientation of the image. |
| [Profile](https://www.fastly.com/documentation/reference/compute/sdks/go/compute-sdk-go/fsthttp/imageopto/enum.Profile/) | Profile specifies features the video encoder can use based on a target class of application for decoding the specific video bitstream. |
| [Region](https://www.fastly.com/documentation/reference/compute/sdks/go/compute-sdk-go/fsthttp/imageopto/enum.Region/) | Region sets the region for image transformation. |
| [ResizeAlgorithm](https://www.fastly.com/documentation/reference/compute/sdks/go/compute-sdk-go/fsthttp/imageopto/enum.ResizeAlgorithm/) | / ResizeAlgorithm specifies the resizing filter used to generate a new image with a higher or lower / number of pixels. |

## Type aliases

| Name | Summary |
| --- | --- |
| [CropMode](https://www.fastly.com/documentation/reference/compute/sdks/go/compute-sdk-go/fsthttp/imageopto/type.CropMode/) | CropMode determines cropping behavior. |
| [PixelsOrPercentage](https://www.fastly.com/documentation/reference/compute/sdks/go/compute-sdk-go/fsthttp/imageopto/type.PixelsOrPercentage/) | PixelsOrPercentage specifies a length as either pixels or a percentage. |
| [PointOrOffset](https://www.fastly.com/documentation/reference/compute/sdks/go/compute-sdk-go/fsthttp/imageopto/type.PointOrOffset/) | PointOrOffset specifies a position along an axis |

## Functions

| Name | Summary |
| --- | --- |
| [NewAreaAspectRatio](https://www.fastly.com/documentation/reference/compute/sdks/go/compute-sdk-go/fsthttp/imageopto/fn.NewAreaAspectRatio/) | NewAreaAspectRatio specifies an area with the given width/height aspect ratio. |
| [NewAreaWidthHeight](https://www.fastly.com/documentation/reference/compute/sdks/go/compute-sdk-go/fsthttp/imageopto/fn.NewAreaWidthHeight/) | NewAreaWidthHeight specifies an area with precise number of pixels. |
| [NewBlurModePercentage](https://www.fastly.com/documentation/reference/compute/sdks/go/compute-sdk-go/fsthttp/imageopto/fn.NewBlurModePercentage/) | NewBlurModePercentage returns a new BlurMode with a blur radius as a percentage of the image size. |
| [NewBlurModePixels](https://www.fastly.com/documentation/reference/compute/sdks/go/compute-sdk-go/fsthttp/imageopto/fn.NewBlurModePixels/) | NewBlurModePixels returns a new BlurMode with a blur radius in pixels. |
| [NewBWModeAtkinson](https://www.fastly.com/documentation/reference/compute/sdks/go/compute-sdk-go/fsthttp/imageopto/fn.NewBWModeAtkinson/) | NewBWModeAtkinston returns a BWMode for Atkinson dithering. |
| [NewBWModeDefaultThreshold](https://www.fastly.com/documentation/reference/compute/sdks/go/compute-sdk-go/fsthttp/imageopto/fn.NewBWModeDefaultThreshold/) | NewBWModeDefaultThreshold returns a BWMode for default threshold dithering. |
| [NewBWModeThreshold](https://www.fastly.com/documentation/reference/compute/sdks/go/compute-sdk-go/fsthttp/imageopto/fn.NewBWModeThreshold/) | NewBWModeThreshold returns a BWMode for default threshold dithering with a specified luminance. |

## Constants

### AutoAVIF

**Type:** `Auto`  
**Default:** `"avif"`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/imageopto/imageopto.go#L51

### AutoWebP

**Type:** `Auto`  
**Default:** `"webp"`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/imageopto/imageopto.go#L52

### CropModeSafe

**Type:** `untyped string`  
**Default:** `"safe"`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/imageopto/imageopto.go#L92

CropModeSafe avoids invalid parameter errors and return an image.

By default, if the specified cropped region is outside the bounds of the image, then the
transformation will fail with the error "Invalid transformation for requested image:
Invalid crop, region out of bounds". This option will instead deliver the image as an
intersection of the origin image and the specified cropped region. This avoids the error,
but the resulting image may not be of the specified dimensions.

### CropModeSmart

**Type:** `untyped string`  
**Default:** `"smart"`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/imageopto/imageopto.go#L97

CropModeSmart enables content-aware algorithms to attempt to crop the image to the desired aspect ratio
while intelligently focusing on the most important visual content, including the detection
of faces.

### EnableOptUpscale

**Type:** `EnableOpt`  
**Default:** `"upscale"`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/imageopto/imageopto.go#L632

/ EnableOptUpscale allows images to be resized such that the output image's dimensions are
/ larger than the source image.

### FitBounds

**Type:** `Fit`  
**Default:** `"bounds"`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/imageopto/imageopto.go#L503

FitBounds resizes the image to fit entirely within the specified region, making
one dimension smaller if needed.

### FitCover

**Type:** `Fit`  
**Default:** `"cover"`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/imageopto/imageopto.go#L506

FitCover resizes the image to entirely cover the specified region, making one
dimension larger if needed.

### FitCrop

**Type:** `Fit`  
**Default:** `"crop"`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/imageopto/imageopto.go#L508

FitCrop resizes and crops the image centrally to exactly fit the specified region.

### FormatAVIF

**Type:** `Format`  
**Default:** `"avif"`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/imageopto/imageopto.go#L32

### FormatAuto

**Type:** `Format`  
**Default:** `"auto"`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/imageopto/imageopto.go#L31

### FormatGIF

**Type:** `Format`  
**Default:** `"gif"`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/imageopto/imageopto.go#L33

### FormatJPEG

**Type:** `Format`  
**Default:** `"jpeg"`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/imageopto/imageopto.go#L34

### FormatJPEGXL

**Type:** `Format`  
**Default:** `"jpegxl"`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/imageopto/imageopto.go#L35

### FormatMP4

**Type:** `Format`  
**Default:** `"mp4"`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/imageopto/imageopto.go#L36

### FormatPNG

**Type:** `Format`  
**Default:** `"png"`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/imageopto/imageopto.go#L37

### FormatWebP

**Type:** `Format`  
**Default:** `"webp"`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/imageopto/imageopto.go#L38

### Level1_0

**Type:** `Level`  
**Default:** `"1.0"`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/imageopto/imageopto.go#L523

### Level1_1

**Type:** `Level`  
**Default:** `"1.1"`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/imageopto/imageopto.go#L524

### Level1_2

**Type:** `Level`  
**Default:** `"1.2"`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/imageopto/imageopto.go#L525

### Level1_3

**Type:** `Level`  
**Default:** `"1.3"`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/imageopto/imageopto.go#L526

### Level2_0

**Type:** `Level`  
**Default:** `"2.0"`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/imageopto/imageopto.go#L527

### Level2_1

**Type:** `Level`  
**Default:** `"2.1"`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/imageopto/imageopto.go#L528

### Level2_2

**Type:** `Level`  
**Default:** `"2.2"`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/imageopto/imageopto.go#L529

### Level3_0

**Type:** `Level`  
**Default:** `"3.0"`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/imageopto/imageopto.go#L530

### Level3_1

**Type:** `Level`  
**Default:** `"3.1"`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/imageopto/imageopto.go#L531

### Level3_2

**Type:** `Level`  
**Default:** `"3.2"`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/imageopto/imageopto.go#L532

### Level4_0

**Type:** `Level`  
**Default:** `"4.0"`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/imageopto/imageopto.go#L533

### Level4_1

**Type:** `Level`  
**Default:** `"4.1"`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/imageopto/imageopto.go#L534

### Level4_2

**Type:** `Level`  
**Default:** `"4.2"`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/imageopto/imageopto.go#L535

### Level5_0

**Type:** `Level`  
**Default:** `"5.0"`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/imageopto/imageopto.go#L536

### Level5_1

**Type:** `Level`  
**Default:** `"5.1"`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/imageopto/imageopto.go#L537

### Level5_2

**Type:** `Level`  
**Default:** `"5.2"`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/imageopto/imageopto.go#L538

### Level6_0

**Type:** `Level`  
**Default:** `"6.0"`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/imageopto/imageopto.go#L539

### Level6_1

**Type:** `Level`  
**Default:** `"6.1"`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/imageopto/imageopto.go#L540

### Level6_2

**Type:** `Level`  
**Default:** `"6.2"`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/imageopto/imageopto.go#L541

### MetadataCopyright

**Type:** `Metadata`  
**Default:** `"copyright"`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/imageopto/imageopto.go#L553

/ MetadataCopyright preserves copyright notice, creator, credit line, licensor, and web statement of rights
/ fields.

### OptimizeLevelHigh

**Type:** `OptimizeLevel`  
**Default:** `"high"`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/imageopto/imageopto.go#L297

OptimizeLevelHigh means minor visual artifacts may be visible. This produces the smallest file.

### OptimizeLevelLow

**Type:** `OptimizeLevel`  
**Default:** `"low"`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/imageopto/imageopto.go#L290

OptimizeLevelLow means the output image quality will be similar to the input image quality.

### OptimizeLevelMedium

**Type:** `OptimizeLevel`  
**Default:** `"medium"`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/imageopto/imageopto.go#L294

OptimizeLevelMedium means more optimization is allowed, while attempting to preserve the visual
quality of the input image.

### OrientationDefault

**Type:** `Orientation`  
**Default:** `1`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/imageopto/imageopto.go#L307

### OrientationFlipHorizontal

**Type:** `Orientation`  
**Default:** `2`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/imageopto/imageopto.go#L308

### OrientationFlipHorizontalAndVertical

**Type:** `Orientation`  
**Default:** `3`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/imageopto/imageopto.go#L309

### OrientationFlipHorizontalOrientLeft

**Type:** `Orientation`  
**Default:** `5`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/imageopto/imageopto.go#L311

### OrientationFlipHorizontalOrientRight

**Type:** `Orientation`  
**Default:** `7`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/imageopto/imageopto.go#L313

### OrientationFlipVertical

**Type:** `Orientation`  
**Default:** `4`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/imageopto/imageopto.go#L310

### OrientationOrientLeft

**Type:** `Orientation`  
**Default:** `8`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/imageopto/imageopto.go#L314

### OrientationOrientRight

**Type:** `Orientation`  
**Default:** `6`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/imageopto/imageopto.go#L312

### ProfileBaseline

**Type:** `Profile`  
**Default:** `"baseline"`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/imageopto/imageopto.go#L568

/ ProfileBaseline is the profile recommended for video conferencing and mobile applications.

### ProfileHigh

**Type:** `Profile`  
**Default:** `"high"`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/imageopto/imageopto.go#L572

/ ProfileHigh is the profile recommended for high-definition broadcasts.

### ProfileMain

**Type:** `Profile`  
**Default:** `"main"`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/imageopto/imageopto.go#L570

/ ProfileMain is the profile recommended for standard-definition broadcasts.

### RegionAsia

**Type:** `Region`  
**Default:** `"asia"`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/imageopto/imageopto.go#L21

### RegionAustralia

**Type:** `Region`  
**Default:** `"australia"`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/imageopto/imageopto.go#L22

### RegionEuCentral

**Type:** `Region`  
**Default:** `"eu_central"`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/imageopto/imageopto.go#L20

### RegionEuWest

**Type:** `Region`  
**Default:** `"eu_west"`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/imageopto/imageopto.go#L19

### RegionUsCentral

**Type:** `Region`  
**Default:** `"us_central"`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/imageopto/imageopto.go#L17

### RegionUsEast

**Type:** `Region`  
**Default:** `"us_east"`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/imageopto/imageopto.go#L18

### RegionUsWest

**Type:** `Region`  
**Default:** `"us_west"`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/imageopto/imageopto.go#L16

### ResizeAlgorithmBicubic

**Type:** `ResizeAlgorithm`  
**Default:** `"bicubic"`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/imageopto/imageopto.go#L588

ResizeAlgorithmBicubic uses an average of a 4x4 environment of pixels, weighing the innermost pixels higher.

### ResizeAlgorithmBilinear

**Type:** `ResizeAlgorithm`  
**Default:** `"bilinear"`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/imageopto/imageopto.go#L586

ResizeAlgorithmBilear uses an average of a 2x2 environment of pixels.

### ResizeAlgorithmLanczos2

**Type:** `ResizeAlgorithm`  
**Default:** `"lanczos2"`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/imageopto/imageopto.go#L591

ResizeAlgorithmLanczos2 uses the Lanczos filter to increase the ability to detect edges and linear features within
an image and uses sinc resampling to provide the best possible reconstruction.

### ResizeAlgorithmLanczos3

**Type:** `ResizeAlgorithm`  
**Default:** `"lanczos3"`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/imageopto/imageopto.go#L593

ResizeAlgorithmLanczos3 uses a better approximation of the sinc resampling function.

### ResizeAlgorithmNearest

**Type:** `ResizeAlgorithm`  
**Default:** `"nearest"`  
**Flags:** read-only  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/fsthttp/imageopto/imageopto.go#L584

ResizeAlgorithmNearest uses the value of nearby translated pixel values.
