<!--
{
  "availability" : [
    "iOS: 6.0.0 - 17.0.0",
    "iPadOS: 6.0.0 - 17.0.0",
    "macCatalyst: 13.1.0 - 17.0.0",
    "macOS: 10.9.0 - 14.0.0",
    "tvOS: -",
    "visionOS: 1.0.0 - 1.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "CoreImage",
  "identifier" : "/documentation/CoreImage/CIFilter-swift.class/serializedXMP(from:inputImageExtent:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "Core Image",
      "CoreImage"
    ],
    "preciseIdentifier" : "c:objc(cs)CIFilter(cm)serializedXMPFromFilters:inputImageExtent:"
  },
  "title" : "serializedXMP(from:inputImageExtent:)"
}
-->

# serializedXMP(from:inputImageExtent:)

Serializes filter parameters into XMP form that is suitable for embedding in an image.

```
class func serializedXMP(from filters: [CIFilter], inputImageExtent extent: CGRect) -> Data?
```

## Parameters

`filters`

The array of filters to serialize. See Discussion for the filters that can be serialized.

`extent`

The extent of the input image to the filter.

## Discussion

At this time the only filters classes that can be serialized using this method are, CIAffineTransform, CICrop, and the filters returned by the [`CIImage`](/documentation/CoreImage/CIImage) methods [`autoAdjustmentFilters()`](/documentation/CoreImage/CIImage/autoAdjustmentFilters()) and [`autoAdjustmentFilters(options:)`](/documentation/CoreImage/CIImage/autoAdjustmentFilters(options:)). The parameters of other filter classes will not be serialized.

---

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)