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
The algorithm will skip processing when the factor is zero
image-js/src/image/filter/level.js
Line 91 in 675bafe
Which seems to support the case when the image was untouched
Lines 72 to 73 in 675bafe
However the case that max == min is ignored and returns untouched image, which should return a black image instead
max == min
Lines 74 to 79 in 675bafe
The text was updated successfully, but these errors were encountered:
fix: level noop when max equals to min
54ac7d0
Fixes: image-js#585
Successfully merging a pull request may close this issue.
The algorithm will skip processing when the factor is zero
image-js/src/image/filter/level.js
Line 91 in 675bafe
Which seems to support the case when the image was untouched
image-js/src/image/filter/level.js
Lines 72 to 73 in 675bafe
However the case that
max == min
is ignored and returns untouched image, which should return a black image insteadimage-js/src/image/filter/level.js
Lines 74 to 79 in 675bafe
The text was updated successfully, but these errors were encountered: