Sub topic 8
Rendering intents and how out-of-gamut colours are handled
This chapter assumes you know what an ICC profile is, what gamut means, and how a conversion moves colour through the profile connection space (PCS). You should also be able to open a convert or soft proof dialog in your design application.
The problem a rendering intent solves
Every print condition has a smaller gamut than a typical RGB working space. A saturated cyan or orange on screen may have no CMYK equivalent. A conversion has to put those out-of-gamut colours somewhere. The rendering intent is the rule it uses.
The intent is stored as a choice in the conversion, not in the image. You pick it each time you convert or proof.
The four intents
| Intent | What it does | Typical use |
|---|---|---|
| Perceptual | Compresses the whole range so relationships between colours are kept. In-gamut colours also shift. | Photographs with many saturated colours |
| Relative colorimetric | Maps white to the paper white of the destination. In-gamut colours stay exact. Out-of-gamut colours clip to the nearest edge. | Default for most print work |
| Saturation | Boosts saturation, with no regard for accuracy. | Charts and business graphics |
| Absolute colorimetric | Keeps white as in the source, so paper tint is reproduced. | Proofing only |
Clipping versus compression
Relative colorimetric clips. Two different saturated blues may both land on the same edge colour, so you lose the difference between them. Gradients can show flat patches or banding.
Perceptual compresses. It avoids that loss, but a colour that could have matched exactly is now slightly off. The result is often a little duller.
A practical rule: try relative colorimetric first. If a gamut warning shows large clipped areas with detail you need, compare perceptual.
Absolute versus relative
Relative colorimetric treats the destination's paper white as white. Absolute colorimetric reproduces the source white on the destination, so a yellowish uncoated stock gets simulated tint where the paper is actually white. Use absolute only in a proof, to preview the paper. Do not use it for the final conversion.
Setting the intent in code
The intent is a parameter of the transform. This example converts with relative colorimetric intent, so in-gamut colours are kept and out-of-gamut colours are clipped.
import io
from PIL import Image, ImageCms
im = Image.open("photo.jpg")
src = ImageCms.ImageCmsProfile(io.BytesIO(im.info["icc_profile"]))
dst = ImageCms.getOpenProfile("press_profile.icc")
out = ImageCms.profileToProfile(
im,
src,
dst,
renderingIntent=ImageCms.Intent.RELATIVE_COLORIMETRIC,
outputMode="CMYK",
flags=ImageCms.Flags.BLACKPOINTCOMPENSATION,
)
out.save("photo_cmyk.tif", icc_profile=dst.tobytes())Change the intent to ImageCms.Intent.PERCEPTUAL and compare the two files side by side.
Common errors
- Choosing absolute colorimetric for the final conversion, which prints a tint on the paper.
- Assuming the profile supports every intent. Some profiles hold tables for only one, and the software then substitutes another.
- Converting twice. Each conversion clips again, so convert once from the original.
Exercise
A logo in a saturated orange looks dull after conversion to CMYK. A gamut warning shows the orange is out of gamut. You used perceptual. Would switching to relative colorimetric help, and what could go wrong?
Show answer
It can help, because relative colorimetric leaves in-gamut colours unchanged and clips the orange to the nearest printable colour, so surrounding colours stay accurate. The risk is that other out-of-gamut colours near the orange clip to the same value, losing distinctions between them. Compare both results in a soft proof.