Skip to content
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

Merged
merged 2 commits into from
Jul 28, 2023
Merged

Added Motion Blur #105

merged 2 commits into from
Jul 28, 2023

Conversation

pavelstencl
Copy link
Contributor

@pavelstencl pavelstencl commented Jul 27, 2023

Hi, thank u for your work. It is awesome! Could u pls add this feature to your branch? Thanks :)

Copy link
Owner

@dlemstra dlemstra left a 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.

@@ -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;
Copy link
Owner

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.

@@ -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;
Copy link
Owner

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;
Copy link
Owner

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.

@pavelstencl
Copy link
Contributor Author

Thanks for CR, i pushed updated version with all your notes implemented.

Copy link
Owner

@dlemstra dlemstra left a 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.

@dlemstra dlemstra merged commit 1d3c7ee into dlemstra:main Jul 28, 2023
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants