-
-
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
Added Motion Blur #105
Added Motion Blur #105
Conversation
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 helping about. Left some comments on things I would like to see changed.
src/magick-image.ts
Outdated
@@ -205,6 +205,8 @@ export interface IMagickImage extends IDisposable { | |||
modulate(brightness: Percentage): void; | |||
modulate(brightness: Percentage, saturation: Percentage): void; | |||
modulate(brightness: Percentage, saturation: Percentage, hue: Percentage): void; | |||
motionBlur():void; | |||
motionBlur(radius?: number, sigma?: number, angle?: 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.
All these numbers should be mandatory in this overload.
src/magick-image.ts
Outdated
@@ -205,6 +205,8 @@ export interface IMagickImage extends IDisposable { | |||
modulate(brightness: Percentage): void; | |||
modulate(brightness: Percentage, saturation: Percentage): void; | |||
modulate(brightness: Percentage, saturation: Percentage, hue: Percentage): void; | |||
motionBlur():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.
Can you please remove this overload? The user will always need to specify the values. In ImageMagick the last value is not mandatory but I don't want to create a specific overload for this. And this overload is also not available in the Magick.NET api and I am trying to keep this library as close as possible to the Magick.NET library.
|
||
import { IMagickImage, MagickImage } from '../../src/magick-image'; | ||
|
||
let image: IMagickImage; |
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.
You don't need this anymore. You can use TestImages.Builtin.logo.use((image) => {
in the unit test instead.
Thanks for CR, i pushed updated version with all your notes implemented. |
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 helping me out.
Hi, thank u for your work. It is awesome! Could u pls add this feature to your branch? Thanks :)