<!--
{
  "availability" : [
    "iOS: 10.0.0 -",
    "iPadOS: 10.0.0 -",
    "macCatalyst: 13.1.0 -",
    "tvOS: 14.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SiriKit",
  "identifier" : "/documentation/Intents/INImage/imageSize(for:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "Intents"
    ],
    "preciseIdentifier" : "c:objc(cs)INImage(cm)imageSizeForIntentResponse:"
  },
  "title" : "imageSize(for:)"
}
-->

# imageSize(for:)

Returns the preferred image size for the specified response object.

```
class func imageSize(for response: INIntentResponse) -> CGSize
```

## Parameters

`response`

The response object that uses the image.

## Return Value

The response object’s preferred image size.

## Discussion

If a response object includes an image, use this method to get its preferred size and then create an image of that size.

---

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)