<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: -",
    "macOS: 26.0.0 -",
    "visionOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "WebKit",
  "identifier" : "/documentation/WebKit/WebPage/ExportedContentConfiguration/image(region:allowTransparentBackground:snapshotWidth:afterScreenUpdates:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "WebKit"
    ],
    "preciseIdentifier" : "s:6WebKit0A4PageC28ExportedContentConfigurationV5image6region26allowTransparentBackground13snapshotWidth18afterScreenUpdatesA2E6RegionV_Sb14CoreFoundation7CGFloatVSgSbtFZ"
  },
  "title" : "image(region:allowTransparentBackground:snapshotWidth:afterScreenUpdates:)"
}
-->

# image(region:allowTransparentBackground:snapshotWidth:afterScreenUpdates:)

A configuration of a webpage for a representation as image data.

```
static func image(region: WebPage.ExportedContentConfiguration.Region = .contents, allowTransparentBackground: Bool = false, snapshotWidth: CGFloat? = nil, afterScreenUpdates: Bool = true) -> WebPage.ExportedContentConfiguration
```

## Parameters

`region`

The region of the page used to generate the image.

`allowTransparentBackground`

Indicates whether the image may have a transparent background.

`snapshotWidth`

The width of the captured image, in points.

    Use this property to scale the generated image to the specified width. The webpage maintains the aspect ratio of the captured content, but scales it to match the width you specify.

    The default value of this parameter is     `nil`    , which returns an image whose size matches the original size of the captured region.

`afterScreenUpdates`

Indicates whether to take the snapshot after incorporating any pending screen updates.

## Return Value

The image configuration of this page that will be used when producing its representation.

---

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)