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

# init(imageURL:orientation:)

Creates an image attachment from a file URL pointing to an image.

## Declaration

```swift
init(imageURL: URL, orientation: CGImagePropertyOrientation? = nil)
```

## See Also

### Creating an image attachment

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