colour.io.image_specification_OpenImageIO#
- colour.io.image_specification_OpenImageIO(width: int, height: int, channels: int, bit_depth: Literal['uint8', 'uint16', 'float16', 'float32', 'float64', 'float128'] = 'float32', attributes: Sequence | None = None) ImageSpec [source]#
Create an OpenImageIO image specification.
- Parameters:
width (int) – Image width.
height (int) – Image height.
channels (int) – Image channel count.
bit_depth (Literal['uint8', 'uint16', 'float16', 'float32', 'float64', 'float128']) – Bit-depth to create the image with, the bit-depth conversion behaviour is ruled directly by OpenImageIO.
attributes (Sequence | None) – An array of
colour.io.Image_Specification_Attribute
class instances used to set attributes of the image.
- Returns:
OpenImageIO. image specification.
- Return type:
ImageSpec
Examples
>>> compression = Image_Specification_Attribute("Compression", "none") >>> image_specification_OpenImageIO( ... 1920, 1080, 3, "float16", [compression] ... ) <OpenImageIO.ImageSpec object at 0x...>