Type Method


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


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



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


The extent of the input image to the filter.


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

Serializing and Deserializing Filters

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software