---
title: Sides
summary: Sides specifies a border around an image for adding or removing pixels.
url: https://www.fastly.com/documentation/reference/compute/sdks/go/compute-sdk-go/fsthttp/imageopto/struct.Sides/
---

**Kind:** Struct  
**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#L248

```go
type Sides struct {
	Top    PixelsOrPercentage
	Right  PixelsOrPercentage
	Bottom PixelsOrPercentage
	Left   PixelsOrPercentage
}
```

Sides specifies a border around an image for adding or removing pixels.

## Fields

### Top

**Type:** `PixelsOrPercentage`

### Right

**Type:** `PixelsOrPercentage`

### Bottom

**Type:** `PixelsOrPercentage`

### Left

**Type:** `PixelsOrPercentage`

## Methods

### String

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

```go
func (s *Sides) String() string
```

**Returns**

`string`
