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

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

Creates an image, of the specified size, from an image file in the local file system, specifying the display style.

## Declaration

```swift
init(url: URL, width: Double, height: Double, isTemplate: Bool? = nil, displayStyle: DisplayRepresentation.Image.DisplayStyle)
```
