ColorSpaces

Registry and utilities for canonical color space management.

Provides a central location for mapping color space aliases to canonical names
and defining expected channel structures for each space.

Methods

public static function expectedChannels(string $space): array

Get the expected channel names for a given color space.

Parameters
NameTypeDefault
$space string -

normalize

static
public static function normalize(string $space): string

Normalize a color space name and resolve its aliases.

Parameters
NameTypeDefault
$space string -