API reference

Core

Profile

An ICC profile.

Transform

A colour transform from one profile to another (or through a chain of profiles).

convert

Convert colours from src to dst.

Intent

ICC rendering intents plus LittleCMS's black-preserving intents.

Flag

LittleCMS transform flags (cmsFLAGS_*).

CMSError

ToneCurve

A one-dimensional tone curve mapping 0..1 to 0..1.

CGATS

A CGATS.17 / IT8.7 file: one or more tables of named columns and patch rows.

parse_color

Parse one colour into sRGB floats in 0..1.

parse_colors

Parse a list of colours into an (N, 3) or (N, 4) float array.

to_hex

Format sRGB floats in 0..1 as "#rrggbb" ("#rrggbbaa" with alpha).

get_version

Version of the linked LittleCMS library, e.g. "2.20".

set_alarm_codes

Set the gamut-check alarm values (process-wide; affects transforms created afterwards).

supported_intents

Every rendering intent the LittleCMS engine implements, with its description.

get_alarm_codes

The 16 gamut-check alarm values (process-wide), in 16-bit output encoding.

set_adaptation_state

Set the process-wide absolute-colorimetric adaptation state (0..1); returns the previous one.

Modules

colorimetry

Colorimetry: color differences, white points, CIECAM02 and basic color space conversions.

spaces

Color spaces defined by conversions to and from CIE XYZ (D50).

icc

Reading and writing ICC profiles (v2, v4 and v5) in pure NumPy.

colormap

Perceptually designed colormaps, gamut-mapped to sRGB.