<!--
{
  "availability" : [
    "iOS: 5.0.0 -",
    "iPadOS: 5.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.4.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreImage",
  "identifier" : "/documentation/CoreImage/CIImage/init(data:options:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "Core Image"
    ],
    "preciseIdentifier" : "c:objc(cs)CIImage(im)initWithData:options:"
  },
  "title" : "init(data:options:)"
}
-->

# init(data:options:)

Initializes an image object with the supplied image data, using the specified options.

```
init?(data: Data, options: [CIImageOption : Any]? = nil)
```

## Parameters

`data`

The image data. The data you supply must be premultiplied.

`options`

A dictionary specifying image options. (See `Image Dictionary Keys`.)

## Return Value

The initialized image object, or `nil` if the object could not be initialized.

## See Also

[`imageWithData:options:`](/documentation/CoreImage/CIImage/imageWithData:options:)

Creates and returns an image object initialized with the supplied image data, using the specified options.



---

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)