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
cmap can become false or undefined after the following statement causing cmap.palette() in the next line to throw an error.
cmap.palette()
var cmap = MMCQ.quantize(pixelArray, colorCount);
it can be prevented with the following check and perhaps the return value can be null in such situation:
var cmap = MMCQ.quantize(pixelArray, colorCount); var palette = cmap? cmap.palette() : null;
The text was updated successfully, but these errors were encountered:
fixes lokesh#54
d29d64c
Signed-off-by: Mohamad Ahmadi <[email protected]>
e08df6c
Merge pull request #55 from mhahmadi/mhahmadi_fix_mmcq_return_value
0511b9d
fixes #54
#55 merged. Thanks again.
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
cmap can become false or undefined after the following statement causing
cmap.palette()
in the next line to throw an error.it can be prevented with the following check and perhaps the return value can be null in such situation:
The text was updated successfully, but these errors were encountered: