---
title: NewAreaAspectRatio
summary: NewAreaAspectRatio specifies an area with the given width/height aspect ratio.
url: https://www.fastly.com/documentation/reference/compute/sdks/go/compute-sdk-go/fsthttp/imageopto/fn.NewAreaAspectRatio/
---

**Kind:** Function  
**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#L122

```go
func NewAreaAspectRatio(w, h uint32) Area
```

NewAreaAspectRatio specifies an area with the given width/height aspect ratio.

**Parameters**

- `w`: `uint32`
- `h`: `uint32`

**Returns**

`Area`
