---
title: "init(url:)"
framework: intents
role: symbol
role_heading: Initializer
path: "intents/inimage/init(url:)-8eo3q"
---

# init(url:)

Creates an image object from an image file in the local file system.

## Declaration

```swift
convenience init?(url URL: URL)
```

## Parameters

- `URL`: A URL to an image file in the local file system. The image can be in any format that the system supports.

## Return Value

Return Value An image object that contains the local image file, or nil if the system can’t load the image file or it doesn’t exist.

## See Also

### Creating an Image Object

- [init(named:)](intents/inimage/init(named:).md)
- [init(UIImage:)](intents/inimage/init(uiimage:).md)
- [init(CGImage:)](intents/inimage/init(cgimage:).md)
- [init(imageData:)](intents/inimage/init(imagedata:).md)
- [init(url:width:height:)](intents/inimage/init(url:width:height:)-41ikr.md)
