# Color management support

> CoreIX supports color management, including different color modes and major color spaces (P3, CMYK, HDR, Adobe RGB, ProPhoto RGB, and more).

## About color spaces

A color space defines how colors are represented in a digital image. CoreIX can process a range of professional color spaces:

- **P3 gamut**: a wide-gamut standard used in digital cinema and high-end displays
- **CMYK color space**: the printing industry standard, built on four inks: cyan, magenta, yellow, and black
- **HDR (high dynamic range)**: offers a wider brightness range and richer color
- **sRGB**: the standard color space for the web and most displays
- **tinysrgb**: a lightweight sRGB implementation for resource-constrained environments

## Color space support in CoreIX

### Features

1. **Color space detection**: automatically detects an image's original color space
2. **Color space conversion**: converts images to a target color space (for example, **P3** / **CMYK** / **Adobe RGB** → **sRGB** output)
3. **HDR mapping**: correctly maps **HDR** content to **SDR** displays
4. **Gamut preservation**: preserves the integrity of the original gamut during processing

> **Warning**
>
> This feature applies only to static images.

### Parameter overview

| Parameter | Meaning                              | Details                                           |
| :-------- | ------------------------------------ | ------------------------------------------------- |
| `cs`      | Specifies the **output color space** | - Values:keep, p3, srgb, tinysrgb (default: keep) |

## Color space processing demo

### Comparison across color spaces

| Color space                                                                            | Keep ICC (cs=keep)                                                                                   | Strip ICC (cs=strip)                                                                                    | **Smart ICC mapping** (cs=srgb)                                                                  |
| :------------------------------------------------------------------------------------- | :--------------------------------------------------------------------------------------------------- | :------------------------------------------------------------------------------------------------------ | :----------------------------------------------------------------------------------------------- |
| **P3 gamut**[View original](https://coreix-demo.s3.bitiful.net/p3_files/p3.jpg)        | ![P3 original](https://coreix-demo.s3.bitiful.net/p3_files/p3.jpg?w=500\&cs=keep)                    | ![P3 thumbnail](https://coreix-demo.s3.bitiful.net/p3_files/p3.jpg?w=500\&cs=strip)                     | ![P3→sRGB](https://coreix-demo.s3.bitiful.net/p3_files/p3.jpg?w=500\&cs=srgb)                    |
| **CMYK color**[View original](https://coreix-demo.s3.bitiful.net/cmyk_files/cmyk2.jpg) | ![CMYK original](https://coreix-demo.s3.bitiful.net/cmyk_files/cmyk2.jpg?w=500\&cs=keep) **700 KiB** | ![CMYK thumbnail](https://coreix-demo.s3.bitiful.net/cmyk_files/cmyk2.jpg?w=500\&cs=strip)   **62 KiB** | ![CMYK→sRGB](https://coreix-demo.s3.bitiful.net/cmyk_files/cmyk2.jpg?w=500\&cs=srgb)  **60 KiB** |
| **HDR image**[View original](https://demo.bitiful.com/hdr-img/trees.avif)              | ![HDR original](https://demo.bitiful.com/hdr-img/trees.avif?w=500\&cs=keep)                          | ![HDR thumbnail](https://demo.bitiful.com/hdr-img/trees.avif?w=500\&cs=strip)                           | ![HDR→sRGB](https://demo.bitiful.com/hdr-img/trees.avif?w=500\&cs=srgb)                          |

> **Info**
>
> - **About tinysrgb**: CoreIX provides a lightweight tinysrgb implementation that cuts memory usage by 40% while staying compatible with the sRGB standard, making it well suited to mobile devices and low-resource environments;
> - **HDR video frame capture**: [HDR content in practice](/en/coreix/features/colorspace)
