# tfg.io.exr.write_exr

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/graphics/blob/master/tensorflow_graphics/io/exr.py#L114-L143) |

Writes the values in a multi-channel ndarray into an EXR file.

    tfg.io.exr.write_exr(
        filename, values, channel_names
    )

<br />

<br />

<br />

| ## Args ||
|---|---|
| `filename` | The filename of the output file |
| `values` | A numpy ndarray with shape \[height, width, channels\] |
| `channel_names` | A list of strings with length = channels |

<br />

<br />

<br />

<br />

| ## Raises ||
|---|---|
| `TypeError` | If the numpy array has an unsupported type. |
| `ValueError` | If the length of the array and the length of the channel names list do not match. |

<br />