---
title: "writeOpenEXRRepresentation(of:to:options:)"
framework: coreimage
role: symbol
role_heading: Instance Method
path: "coreimage/cicontext/writeopenexrrepresentation(of:to:options:)"
---

# writeOpenEXRRepresentation(of:to:options:)

Renders the image and exports the resulting image data as a file in open EXR format.

## Declaration

```swift
func writeOpenEXRRepresentation(of image: CIImage, to url: URL, options: [CIImageRepresentationOption : Any] = [:]) throws
```

## Parameters

- `image`: The image object to render.
- `url`: The file URL at which to write the output HEIF file.
- `options`: A dictionary with additional options for export.

## See Also

### Rendering Images for Data or File Export

- [tiffRepresentation(of:format:colorSpace:options:)](coreimage/cicontext/tiffrepresentation(of:format:colorspace:options:).md)
- [jpegRepresentation(of:colorSpace:options:)](coreimage/cicontext/jpegrepresentation(of:colorspace:options:).md)
- [pngRepresentation(of:format:colorSpace:options:)](coreimage/cicontext/pngrepresentation(of:format:colorspace:options:).md)
- [heifRepresentation(of:format:colorSpace:options:)](coreimage/cicontext/heifrepresentation(of:format:colorspace:options:).md)
- [heif10Representation(of:colorSpace:options:)](coreimage/cicontext/heif10representation(of:colorspace:options:).md)
- [openEXRRepresentation(of:options:)](coreimage/cicontext/openexrrepresentation(of:options:).md)
- [writeTIFFRepresentation(of:to:format:colorSpace:options:)](coreimage/cicontext/writetiffrepresentation(of:to:format:colorspace:options:).md)
- [writeJPEGRepresentation(of:to:colorSpace:options:)](coreimage/cicontext/writejpegrepresentation(of:to:colorspace:options:).md)
- [writePNGRepresentation(of:to:format:colorSpace:options:)](coreimage/cicontext/writepngrepresentation(of:to:format:colorspace:options:).md)
- [writeHEIFRepresentation(of:to:format:colorSpace:options:)](coreimage/cicontext/writeheifrepresentation(of:to:format:colorspace:options:).md)
- [writeHEIF10Representation(of:to:colorSpace:options:)](coreimage/cicontext/writeheif10representation(of:to:colorspace:options:).md)
- [CIImageRepresentationOption](coreimage/ciimagerepresentationoption.md)
