todo
The starting point is the same sRGB Macbeth Color Checker from the PNG ICC tests.
The sRGB values below are rounded to 8-bit (0 to 255) precision and given as decimal values.
dark skin rgb(117 82 67) |
light skin rgb(199 148 129) |
blue sky rgb(91 123 157) |
foliage rgb(89 108 65) |
blue flower rgb(131 129 176) |
bluish green rgb(94 190 172) |
orange rgb(223 124 44) |
purplish blue rgb(69 92 168) |
moderate red rgb(200 84 97) |
purple rgb(92 59 104) |
yellow green rgb(159 189 63) |
orange yellow rgb(231 162 39) |
blue rgb(39 62 147) |
green rgb(67 148 73) |
red rgb(182 46 56) |
yellow rgb(240 200 22) |
magenta rgb(193 84 149) |
desat_cyan rgb(0 133 160) |
white 9.5 rgb(245 245 240) |
neutral 8 rgb(200 201 201) |
neutral 6.5 rgb(160 161 161) |
neutral 5 rgb(120 121 121) |
neutral 3.5 rgb(83 84 85) |
black 2 rgb(50 50 50) |
The patch values are then converted to each tested CICP-labelled color space
using color.js (see workings),
and are used to generate a PNG image to which the appropriate cICP
chunk is added.
For each test, the test image is loaded into an sRGB canvas 2D context, causing colorspace conversion. The resulting sRGB values are then read back and compared with the original sRGB values.