jpederson/node-colorvert

rgb_to_cmyk doesn't work

LJTDiSZ opened this issue · 1 comments

cvert.rgb_to_cmyk(223, 0, 41, function(err, cmyk){
console.log(cmyk);
res.write(JSON.stringify(cmyk));
});

I got an error saying,

node_modules/colorvert/rgb/cmyk.js:18
"c": Math.round( cmyk[0] ),
^
TypeError: Cannot read property '0' of undefined

This was fixed in a subsequent release - super delayed response, my apologies..