---
title: "init(data:orientation:options:)"
framework: Vision
role: symbol
role_heading: Initializer
platforms: [iOS 11.0+, iPadOS 11.0+, Mac Catalyst 13.1+, macOS 10.13+, tvOS 11.0+, visionOS 1.0+]
path: vision/vnimagerequesthandler/2869635-init
---

# init(data:orientation:options:)

Creates a handler to use for performing requests on an image of known orientation.

## Declaration

```swift
init(data imageData: Data, orientation: CGImagePropertyOrientation, options: [VNImageOption : Any] = [:])
```

## Parameters

- `imageData`: Data containing the image to be used for performing the requests. Image content is immutable.
- `orientation`: The orientation of the input `image`.
- `options`: An optional dictionary containing [doc://Vision/documentation/Vision/VNImageOption](vision/vnimageoption.md) keys to auxiliary image data.

## Discussion

The intended use cases of this type of initializer include compressed images and network downloads, where a client may receive a JPEG from a website or the cloud.

## See Also

### Creating a Request Handler

- [init(cgImage:options:)](init(cgimage:options:)-4qda6.md)
- [init(cgImage:orientation:options:)](init(cgimage:orientation:options:)-63ojm.md)
- [init(ciImage:options:)](init(ciimage:options:)-4wf33.md)
- [init(ciImage:orientation:options:)](init(ciimage:orientation:options:)-3svy6.md)
- [init(cvPixelBuffer:options:)](init(cvpixelbuffer:options:)-bkd7.md)
- [init(cvPixelBuffer:orientation:options:)](init(cvpixelbuffer:orientation:options:)-9fxug.md)
- [init(cvPixelBuffer:depthData:orientation:options:)](init(cvpixelbuffer:depthdata:orientation:options:)-3mj2d.md)
- [init(cmSampleBuffer:options:)](init(cmsamplebuffer:options:)-2yodn.md)
- [init(cmSampleBuffer:orientation:options:)](init(cmsamplebuffer:orientation:options:)-335k4.md)
- [init(cmSampleBuffer:depthData:orientation:options:)](init(cmsamplebuffer:depthdata:orientation:options:)-8bjyh.md)
- [init(data:options:)](init(data:options:).md)
- [init(url:options:)](init(url:options:)-4k623.md)
- [init(url:orientation:options:)](init(url:orientation:options:)-70nta.md)
