<!--
{
  "availability" : [
    "iOS: 11.0.0 -",
    "iPadOS: 11.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.13.0 -",
    "tvOS: 11.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Vision",
  "identifier" : "/documentation/Vision/VNImageRequestHandler/init(data:orientation:options:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Vision"
    ],
    "preciseIdentifier" : "c:objc(cs)VNImageRequestHandler(im)initWithData:orientation:options:"
  },
  "title" : "init(data:orientation:options:)"
}
-->

# init(data:orientation:options:)

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

```
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 [`VNImageOption`](/documentation/Vision/VNImageOption) 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.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)