mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-10 13:34:26 +00:00
craft-cms: reference-value regression cases, including the reported DesignCraft orange
The reference value for CMYK 0/41/90/4 in Coated FOGRA39 is 239,161,35. The fitted profile gives 239,161,33 (ΔE00 0.16); the uncalibrated formula DesignCraft used gives 245,144,25 (ΔE00 6.36). Six more reference values (K50 grey, rich black, light tint, skin tone, C+Y green, near-neutral) are within 0.7 ΔE00.
This commit is contained in:
@@ -459,7 +459,7 @@ fn in_gamut_lab_round_trips() {
|
||||
|
||||
/// Reference sRGB values for CMYK in Coated FOGRA39 (relative colorimetric with black point
|
||||
/// compensation).
|
||||
const REFERENCE_SRGB: [([f64; 4], [u8; 3]); 8] = [
|
||||
const REFERENCE_SRGB: [([f64; 4], [u8; 3]); 15] = [
|
||||
([0.0, 0.5, 1.0, 0.0], [243, 146, 0]),
|
||||
([0.0, 0.6, 1.0, 0.0], [239, 125, 0]),
|
||||
([1.0, 0.0, 0.0, 0.0], [0, 159, 227]),
|
||||
@@ -468,6 +468,15 @@ const REFERENCE_SRGB: [([f64; 4], [u8; 3]); 8] = [
|
||||
([0.0, 0.0, 0.0, 1.0], [29, 29, 27]),
|
||||
([1.0, 1.0, 0.0, 0.0], [49, 39, 131]),
|
||||
([0.0, 1.0, 1.0, 0.0], [227, 6, 19]),
|
||||
// Reported DesignCraft orange: shown as 245,144,25 by the uncalibrated formula.
|
||||
([0.0, 0.41, 0.9, 0.04], [239, 161, 35]),
|
||||
// Grey, rich black, tint, skin tone, green and a near-neutral.
|
||||
([0.0, 0.0, 0.0, 0.5], [157, 157, 156]),
|
||||
([0.6, 0.4, 0.4, 1.0], [2, 10, 10]),
|
||||
([0.1, 0.05, 0.0, 0.0], [233, 238, 249]),
|
||||
([0.05, 0.3, 0.4, 0.0], [241, 192, 157]),
|
||||
([1.0, 0.0, 1.0, 0.0], [0, 150, 64]),
|
||||
([0.4, 0.3, 0.3, 0.1], [157, 158, 159]),
|
||||
];
|
||||
|
||||
fn to_srgb(profile: &Profile) -> impl Fn([f64; 4]) -> [u8; 3] {
|
||||
|
||||
Reference in New Issue
Block a user