Sub topic 11
ICC profiles and rendering intents
This chapter assumes you know what RGB and CMYK channels are, and that you understand colour spaces and gamut. It also assumes you have seen the naive RGB-to-CMYK formula. Here you will learn what an ICC profile adds to a conversion and how rendering intents decide what happens to colours a device cannot reproduce.
Why the naive formula is not enough
The naive formula treats every printer and every sheet of paper as the same. In practice, a CMYK value such as 0, 47, 100, 0 looks different on coated glossy stock, on uncoated paper, and on newsprint. The inks, the paper whiteness and the amount of dot spread all change the result. A number in a device-dependent model like CMYK does not say which colour you will get until you know the device.
An ICC profile fixes this. It is a small file, standardised by the International Color Consortium, that describes how one device or colour space turns its numbers into real, measured colour.
What a profile contains
A profile records the relationship between device values and a device-independent reference space, called the profile connection space (PCS). The PCS is usually CIE XYZ or CIE Lab, which describe colour as a human eye sees it, not as a device produces it.
For a printer, the profile is built by printing a chart of known CMYK patches and measuring each patch with a spectrophotometer. The measurements become a lookup table from CMYK to Lab. A second table runs the other way, from Lab back to CMYK.
Common profiles you will meet:
- sRGB IEC61966-2.1 for the web and most screens.
- Adobe RGB (1998) and Display P3, which are wider RGB spaces.
- FOGRA39 / FOGRA51, U.S. Web Coated (SWOP) v2 and GRACoL, which describe common print conditions.
- A custom profile measured from your own printer and paper.
How a conversion works
A colour-managed conversion goes through the PCS. It does not go straight from RGB to CMYK.
The source profile says what colour the RGB numbers mean. The destination profile says which CMYK numbers produce that colour on the chosen press and paper. If the destination gamut cannot reach the colour, the rendering intent decides what happens.
Rendering intents
A rendering intent is the rule for handling out-of-gamut colours. The ICC defines four.
| Intent | What it does | Typical use |
|---|---|---|
| Perceptual | Compresses the whole source range so relationships between colours are kept. In-gamut colours may shift too. | Photographs with strong, saturated colours |
| Relative colorimetric | Keeps in-gamut colours exact. Clips out-of-gamut colours to the nearest reproducible colour. Maps the source white to the paper white. | Most print work, especially with black point compensation |
| Saturation | Keeps colours vivid and does not care about accuracy. | Charts and business graphics |
| Absolute colorimetric | Like relative, but does not adjust for paper white. | Proofing, to simulate one paper on another |
Relative colorimetric with black point compensation is the usual default for print. Perceptual suits photos with many out-of-gamut colours, because clipping would flatten them into one shade.
Tagging, embedding and converting
Two actions are easy to confuse.
- Assign or tag a profile: you change the label but not the numbers. The same numbers now mean a different colour.
- Convert to a profile: the numbers change so that the colour stays as close as possible.
Embedding a profile in a file lets other software interpret the numbers correctly. A file with no profile makes the software guess, and the usual guess is sRGB.
from PIL import Image, ImageCms
src = Image.open("photo.jpg").convert("RGB")
srgb = ImageCms.createProfile("sRGB")
cmyk = ImageCms.getOpenProfile("CoatedFOGRA39.icc") # path to your press profile
transform = ImageCms.buildTransform(
srgb,
cmyk,
"RGB",
"CMYK",
renderingIntent=ImageCms.Intent.RELATIVE_COLORIMETRIC,
flags=ImageCms.Flags.BLACKPOINTCOMPENSATION,
)
out = ImageCms.applyTransform(src, transform)
out.save("photo_cmyk.tif")This needs Pillow and a real profile file from your printer or a standards body.
Common mistakes
- Converting to CMYK, then back to RGB, and expecting the original colours. Clipped colours are gone.
- Assigning a CMYK profile instead of converting.
- Soft-proofing with the wrong paper profile, so the screen preview misleads.
- Using the saturation intent for photographs, which exaggerates colour.
- Sending files with no embedded profile and no agreement with the printer on the target.
Exercise
A designer opens an RGB logo, selects a CMYK profile and uses "Assign profile" instead of "Convert to profile". What happens to the pixel values and to the appearance, and what should they do?
Show answer
Assigning changes only the label, so the numbers stay the same but are now read as CMYK-style values for that profile, which gives wrong colours. They should use Convert to profile, choosing the press profile and an intent such as relative colorimetric with black point compensation, so the numbers change and the colour is preserved as closely as the gamut allows.
Exercise
Why does a bright saturated blue from an sRGB photo look duller after conversion to coated CMYK with relative colorimetric, and which intent might keep more of the photo's colour relationships?
Show answer
The blue lies outside the CMYK gamut, so relative colorimetric clips it to the nearest printable colour. Perceptual compresses the whole range, so relationships between colours are kept, though in-gamut colours also shift slightly.