---
title: imageScaling
framework: appkit
role: symbol
role_heading: Type Property
path: appkit/nsworkspace/desktopimageoptionkey/imagescaling
---

# imageScaling

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

## Declaration

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

## Discussion

Discussion The value is an NSNumber object that contains an NSImageScaling constant as declared in NSCell. If you don’t include this key, the workspace object uses NSImageScaling.scaleProportionallyUpOrDown. NSImageScaling.scaleProportionallyDown isn’t supported.

## See Also

### Option Keys

- [allowClipping](appkit/nsworkspace/desktopimageoptionkey/allowclipping.md)
- [fillColor](appkit/nsworkspace/desktopimageoptionkey/fillcolor.md)
