<!--
{
  "availability" : [
    "macOS: 10.6.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSWorkspace/DesktopImageOptionKey/imageScaling",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:@NSWorkspaceDesktopImageScalingKey"
  },
  "title" : "imageScaling"
}
-->

# imageScaling

A key that contains the behavior to use when scaling the image.

```
static let imageScaling: NSWorkspace.DesktopImageOptionKey
```

## Discussion

The value is an <doc://com.apple.documentation/documentation/Foundation/NSNumber> object that contains an [`NSImageScaling`](/documentation/AppKit/NSImageScaling) constant as declared in [`NSCell`](/documentation/AppKit/NSCell). If you don’t include this key, the workspace object uses [`NSImageScaling.scaleProportionallyUpOrDown`](/documentation/AppKit/NSImageScaling/scaleProportionallyUpOrDown). [`NSImageScaling.scaleProportionallyDown`](/documentation/AppKit/NSImageScaling/scaleProportionallyDown) isn’t supported.

---

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)