---
title: "init(url:orientation:options:)"
framework: vision
role: symbol
role_heading: Initializer
path: "vision/vnimagerequesthandler/init(url:orientation:options:)-70nta"
---

# init(url:orientation:options:)

Creates a handler to be used for performing requests on an image with known orientation, at the specified URL.

## Declaration

```swift
init(url imageURL: URL, orientation: CGImagePropertyOrientation, options: [VNImageOption : Any] = [:])
```

## Parameters

- `imageURL`: A URL pointing to the image to be used for performing the requests. The image must be in a format supported by doc://com.apple.documentation/documentation/ImageIO. Image content is immutable.
- `orientation`: The orientation of the input image.
- `options`: An optional dictionary containing doc://Vision/documentation/Vision/VNImageOption keys to auxiliary image data.

## See Also

### Creating a Request Handler

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