<!--
{
  "availability" : [
    "iOS: 11.0.0 -",
    "iPadOS: 11.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 11.0.0 -",
    "tvOS: 11.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 4.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SiriKit",
  "identifier" : "/documentation/Intents/INImage/init(url:width:height:)-41ikr",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Intents"
    ],
    "preciseIdentifier" : "c:objc(cs)INImage(cm)imageWithURL:width:height:"
  },
  "title" : "init(url:width:height:)"
}
-->

# init(url:width:height:)

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

```
convenience init?(url URL: URL, width: Double, height: Double)
```

## Parameters

`URL`

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

`width`

The required width, in points, of the image. If necessary, the system scales the image, horizontally, to match this value.

`height`

The request height, in points, of the image. If necessary, the system scales the image, vertically, to match this value.

## Return Value

An image object that contains the local image file at the specified size, or `nil` if the system can’t load the image file or it doesn’t exist.

---

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)