Sub topic 17
Building custom profiles with a measuring device
This chapter assumes you already know what an ICC profile is, how rendering intents and black point compensation work, and how to set up a soft proof. It covers when a custom profile is worth making, how a measuring device turns printed or displayed patches into a profile, and how to check the result.
When a custom profile is worth building
Most print work does not need a custom profile. For offset printing, a standard characterisation such as FOGRA39, FOGRA51 or GRACoL describes a press condition that many printers already match. Using it is usually better than measuring one press run, because everyone in the chain targets the same reference.
A custom profile makes sense when the colour condition belongs to you and no published profile describes it. Typical cases:
- Your own inkjet or laser printer with a specific paper.
- A large-format or digital press where the print shop's generic profile does not match the stock you use.
- Your display, which always needs its own profile because each panel differs and drifts as it ages.
A profile describes one combination of device, ink or toner, paper, driver or RIP settings, and measurement conditions. If you change any of them, the profile no longer describes the output.
What the measuring device does
A profile needs measured colour, not estimated colour. You send known device values to the output, measure what actually appears in a device-independent space (CIE XYZ or Lab), and let profiling software build the lookup tables that connect device values to the profile connection space.
| Device | What it measures | Typical use | Limits |
|---|---|---|---|
| Colorimeter | Light through filters that approximate human colour response | Display calibration and profiling | Cannot measure reflective prints. Accuracy depends on the panel type. |
| Spectrophotometer | Full spectral reflectance or emission | Printer profiles, press checks, some display work | More expensive. Needs correct measurement conditions. |
| Spectrophotometer with scanning arm or chart reader | Rows of patches on a chart | Faster printer profiling | Needs a flat chart and a correct backing. |
Profiling a display
Display profiling has two parts. Calibration changes the display's behaviour. Profiling describes the result.
- Let the display warm up for 30 minutes and set the room lighting you normally work in.
- Choose targets: a white point (often D65, or D50 if you compare against a viewing booth), a luminance (commonly 80 to 120 cd/m² for print work), and a tone curve (gamma 2.2 or the sRGB curve, or L* for some workflows).
- Adjust the hardware where possible. A display with a hardware lookup table (LUT) stores the calibration inside the monitor, which avoids banding. Without one, the software loads corrections into the graphics card.
- Measure a series of patches. The software builds a display profile and sets it as the system profile.
Never assign the display profile to a document and never use it as a working space. It describes this one screen, so it belongs to the operating system.
Profiling a printer
Step 1: Fix the printing conditions first
Before printing a target, settle the media type, print quality, driver or RIP, ink limit and any linearisation. Print the target with colour management turned off in the driver, so no extra conversion occurs. If you profile with one set of settings and print with another, the profile is wrong from the start.
Step 2: Print the target
A target is a chart of patches with known device values, such as an IT8.7/4 chart (1,617 CMYK patches) or the ECI2002 chart. More patches mean a more detailed profile and more measuring time. RGB inkjet printers usually need a smaller RGB target, often a few hundred to a thousand or so patches.
Let the print dry. Inkjet ink can shift in colour for hours after printing, so follow the paper maker's guidance, often 12 to 24 hours.
Step 3: Measure with consistent conditions
Measurement conditions change the numbers, so set them deliberately:
- Use the same illuminant (usually D50) as your viewing condition.
- Pick the measurement mode that fits the paper. M0 has no UV cut, M1 uses D50 illumination, and M2 uses a UV-cut filter. Papers with optical brightening agents (OBAs) read differently in each mode. For ISO 13655 workflows, M1 is the usual reference when the paper has OBAs.
- Place the chart on a neutral backing, usually black or a stack of the same paper, and be consistent.
Step 4: Build and install the profile
Profiling software fits the measured Lab values to the device values and produces an ICC profile. Choices include the total ink limit, black generation (how much black replaces the CMY mix), and gamut mapping for the perceptual table. Install the profile where your applications can find it, and give it a name that records paper, printer, date and settings.
Verifying the profile
A profile can fit its own target well and still be poor in real use. Verify it with a different chart, ideally one that includes skin tones, neutrals and saturated colours that were not part of the profiling target.
Convert the chart's reference values through the profile, print it, measure the print, and compare the measured Lab values with the expected ones using ΔE (colour difference). Report both the average and the maximum, since a good average can hide a few bad patches.
import math
def delta_e_76(lab1, lab2):
"""Return the CIE76 colour difference between two Lab triples."""
return math.sqrt(sum((a - b) ** 2 for a, b in zip(lab1, lab2)))
expected = [(50.0, 0.0, 0.0), (65.0, 25.0, 40.0), (30.0, -20.0, 15.0)]
measured = [(50.5, 0.4, -0.3), (64.0, 27.0, 38.5), (31.0, -18.5, 16.0)]
errors = [delta_e_76(e, m) for e, m in zip(expected, measured)]
print("average dE76:", round(sum(errors) / len(errors), 2))
print("maximum dE76:", round(max(errors), 2))CIE76 is the simplest formula and it overstates differences in saturated colours. Standards such as ISO 12647 and Fogra's verification tools use ΔE00 (CIEDE2000) or ΔE*ab depending on the specification. Use the formula your target tolerance is written in.
You can also check what a finished profile declares about itself:
from PIL import ImageCms
profile = ImageCms.getOpenProfile("my_printer_paper.icc")
print("Description:", ImageCms.getProfileDescription(profile).strip())
print("Class:", profile.profile.device_class)
print("Colour space:", profile.profile.xcolor_space.strip())
print("Connection space:", profile.profile.connection_space.strip())A printer profile should report the class prtr and a colour space of RGB or CMYK, with Lab or XYZ as the connection space.
Common errors
- Colour management left on while printing the target. The driver converts the patches, and the profile ends up compensating for a conversion that will not happen later.
- Different settings at print time. Changing the paper type or quality setting invalidates the profile.
- Measuring before the ink dries. The profile describes a colour that the print drifts away from.
- Mixing measurement modes. A profile built under M0 and a viewing booth built to M1 disagree on OBA papers.
- Profiling an unstable device. If a printer has clogged nozzles or a press drifts between sheets, repeat the target and check consistency first. A profile cannot fix variation.
- Never re-checking. Displays age and printers drift. Re-profile displays on a regular schedule, commonly monthly, and re-verify printers when the ink, paper batch or hardware changes.
Summary
A custom profile is a measured description of one device in one condition. Fix the conditions, print a target without colour management, let it dry, measure it in a consistent mode, build the profile, and verify with a separate chart. Standard profiles remain the better choice for press work unless the printer asks for something else.
Exercise
You profiled your inkjet printer on glossy paper at "photo quality". A week later you print on the same paper at "draft quality" using the same profile, and the colours look flatter. Is the profile broken, and what should you do?
Show answer
The profile is not broken. It describes only the condition it was measured in, and changing the quality setting changes how much ink is laid down and how it behaves on the paper. Either print at the original "photo quality" setting, or build a new profile for the draft setting using the same workflow (fixed settings, target printed without colour management, dry, measure, build, verify).
Exercise
A verification run gives an average ΔE of 1.2 but a maximum of 9.0. Why is reporting only the average misleading, and what should you check?
Show answer
An average can hide a few badly wrong patches, such as one saturated colour that lies near the gamut edge. Look at which patches produce the maximum. If they are saturated or dark colours, check the ink limit, black generation and gamut mapping. If they are scattered, check for measurement errors or an unstable printer.