added option to check for out-of-gamut colors wrt the monitor profile

If soft-proofing is turned off, enabling gamut check will show highlight the pixels that are out of gamut for the current monitor profile
This commit is contained in:
Alberto Griggio
2018-02-05 10:25:02 +01:00
parent 14a463102c
commit e9d700d61d
26 changed files with 17 additions and 52 deletions

View File

@@ -337,6 +337,17 @@ void ImProcFunctions::updateColorProfiles (const Glib::ustring& monitorProfile,
softProofCreated = true;
}
}
} else if (gamutCheck) {
flags = cmsFLAGS_GAMUTCHECK | cmsFLAGS_NOOPTIMIZE | cmsFLAGS_NOCACHE;
if (settings->monitorBPC) {
flags |= cmsFLAGS_BLACKPOINTCOMPENSATION;
}
monitorTransform = cmsCreateProofingTransform(iprof, TYPE_Lab_FLT, monitor, TYPE_RGB_8, monitor, monitorIntent, monitorIntent, flags);
if (monitorTransform) {
softProofCreated = true;
}
}
if (!softProofCreated) {