---
title: "init(url:width:height:isTemplate:)"
framework: appintents
role: symbol
role_heading: Initializer
path: "appintents/displayrepresentation/image-swift.struct/init(url:width:height:istemplate:)"
---

# init(url:width:height:isTemplate:)

Creates an image object, of the specified size, from an image file in the local file system.

## Declaration

```swift
init(url: URL, width: Double, height: Double, isTemplate: Bool? = nil)
```
