-
-
Notifications
You must be signed in to change notification settings - Fork 756
New issue
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
Reproduce Gimp Convolution in jimp (Convolution matrix) #368
Labels
bug
there is a bug in the way jimp behaves
Comments
The problem is that the convolution function in Jimp does not handle the case new pixel value is greater than 255 |
You can try monkey-patching the convolute function to this:
|
@steffkelsey why monkey patch when you can make a PR. please do! |
Released in v0.4.0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I can not reproduce the same result I have on Gimp. What I do wrong?
Original Image:
With gimp I use this procedure: Filter-> Generic-> Convolution Matrix.
Settings:
Result:
With jimp "0.2.28" on Node:
Result:
Thanks!
The text was updated successfully, but these errors were encountered: