---
title: width
framework: coreai
role: symbol
role_heading: Instance Property
path: coreai/imagedescriptor/width
---

# width

The width of the image, in pixels.

## Declaration

```swift
let width: Int
```

## Discussion

Discussion A value of -1 indicates a dynamic shape.

## See Also

### Inspecting image properties

- [pixelFormatType](coreai/imagedescriptor/pixelformattype.md)
- [height](coreai/imagedescriptor/height.md)
