-
-
Notifications
You must be signed in to change notification settings - Fork 38
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
Add autoGamma, autoLevel and gaussianBlur to MagickImage. #150
Conversation
Can you rebase this PR so we can run the tests? And thanks for splitting the PR up so those new methods are added individually. Otherwise I would have asked to split this PR up. |
And you also got some linting issues. Please update the individual commits or create separate PR's. |
46c5b23
to
801e7e9
Compare
Oops! I accidentally had ESLint disabled in my IDE. All good now! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for your help, left some review comments.
* Gaussian blur image. | ||
* @param radius - The number of neighbor pixels to be included in the convolution. | ||
*/ | ||
gaussianBlur(radius: number): void; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Magick.NET library also has a (radius: number, channels: Channels)
overload. Can this also be added?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the issue I described in #151. But we can't use the same trick here, as it collides with (radius: number, sigma: number)
. If you can think of another way I'll happily implement it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For an other method I made the channels
argument the first argument but that is also not a really clean solution that I should probably revert. And that will also not work here.
b97f65c
to
50aa8b2
Compare
50aa8b2
to
9698e16
Compare
gaussianBlur(radius: number, channels: Channels): void;
was omitted as there is no way to distinguish it fromgaussianBlur(radius: number, sigma: number): void;