colour.io.write_image_Imageio

colour.io.write_image_Imageio(image, path, bit_depth='float32', **kwargs)[source]

Writes given image at given path using Imageio.

Parameters:
  • image (array_like) – Image data.
  • path (unicode) – Image path.
  • bit_depth (unicode, optional) – {‘float32’, ‘uint8’, ‘uint16’, ‘float16’}, Bit depth to write the image at, the image data is converted with colour.io.convert_bit_depth() definition prior to writing the image.
Other Parameters:
 

**kwargs (dict, optional) – Keywords arguments.

Returns:

Definition success.

Return type:

bool

Examples

>>> import os
>>> import colour
>>> path = os.path.join(colour.__path__[0], 'io', 'tests', 'resources',
...                     'CMS_Test_Pattern.exr')
>>> image = read_image(path)  # doctest: +SKIP
>>> path = os.path.join(colour.__path__[0], 'io', 'tests', 'resources',
...                     'CMSTestPattern.tif')
>>> write_image(image, path)  # doctest: +SKIP
True