We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I'm trying to convert a RGB image to CMYK, but i get an error that says: unsupported number of components: 4
unsupported number of components: 4
When i run this part of the code
console.log('Width', image.width); console.log('Height', image.height); console.log('colorModel', image.colorModel); console.log('components', image.components); console.log('alpha', image.alpha); console.log('channels', image.channels); console.log('bitDepth', image.bitDepth);
I get this in the console log, and it says components 3:
Width 458 Height 354 colorModel RGB components 3 alpha 1 channels 4 bitDepth 8
But when i try to do this, it get the error unsupported number of components: 4 var cmykImage = image.cmyk();
var cmykImage = image.cmyk();
Am i doing something wrong? Can't seem to find anything documenting this.
The text was updated successfully, but these errors were encountered:
Could you give us the full code ?
Here is the testcase we have:
image-js/src/image/transform/__tests__/cmyk.js
Lines 5 to 13 in d3700aa
Sorry, something went wrong.
No branches or pull requests
I'm trying to convert a RGB image to CMYK, but i get an error that says:
unsupported number of components: 4
When i run this part of the code
I get this in the console log, and it says components 3:
But when i try to do this, it get the error
unsupported number of components: 4
var cmykImage = image.cmyk();
Am i doing something wrong? Can't seem to find anything documenting this.
The text was updated successfully, but these errors were encountered: