---
title: "serializedXMP(from:inputImageExtent:)"
framework: coreimage
role: symbol
role_heading: Type Method
path: "coreimage/cifilter-swift.class/serializedxmp(from:inputimageextent:)"
---

# serializedXMP(from:inputImageExtent:)

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

## Declaration

```swift
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

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 methods autoAdjustmentFilters() and autoAdjustmentFilters(options:). The parameters of other filter classes will not be serialized.

## See Also

### Deprecated

- [init(CVPixelBuffer:properties:options:)](coreimage/cifilter-swift.class/init(cvpixelbuffer:properties:options:)-7qpsv.md)
- [init(imageData:options:)](coreimage/cifilter-swift.class/init(imagedata:options:).md)
- [init(imageURL:options:)](coreimage/cifilter-swift.class/init(imageurl:options:).md)
- [CIRAWFilterOption](coreimage/cirawfilteroption.md)
- [filterArray(fromSerializedXMP:inputImageExtent:error:)](coreimage/cifilter-swift.class/filterarray(fromserializedxmp:inputimageextent:error:).md)
- [supportedRawCameraModels()](coreimage/cifilter-swift.class/supportedrawcameramodels().md)
