---
title: "init(_:orientation:)"
framework: foundationmodels
role: symbol
role_heading: Initializer
path: "foundationmodels/transcript/imageattachment/init(_:orientation:)"
---

# init(_:orientation:)

Creates an image attachment from a CGImage.

## Declaration

```swift
init(_ cgImage: CGImage, orientation: CGImagePropertyOrientation? = nil)
```

## See Also

### Creating an image attachment

- [init(imageURL:orientation:)](foundationmodels/transcript/imageattachment/init(imageurl:orientation:).md)
