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

Feature Request: Composite Blend Modes #1238

Closed
wezside opened this issue May 24, 2018 · 3 comments
Closed

Feature Request: Composite Blend Modes #1238

wezside opened this issue May 24, 2018 · 3 comments
Labels

Comments

@wezside
Copy link

wezside commented May 24, 2018

I had a look and this appears to be available in libvips (issue #657) but not yet in sharp. It is one of the features I feel sharp is lacking that would make it very useful personally.

 VImage VImage::composite( VImage other, VipsBlendMode mode, VOption *options );

Without having too much knowledge on the library I'd imagine a pseudo method as below could work?

VImage Blend(VImage image, VImage overlayImage, VipsBlendMode mode) 
{
	// check for same width + height
	// check for alpha
	return image.composite(overlayImage, mode, VImage::option());
}
@lovell
Copy link
Owner

lovell commented May 24, 2018

Hello, did you see #728?

@wezside
Copy link
Author

wezside commented May 24, 2018

I did but totally forgot about it. Will follow along the other discussion. I do think a single/simple method could be beneficial, even if the multiple overlay references this single/simple method. Feel free to close this.

@lovell
Copy link
Owner

lovell commented May 24, 2018

Let's track this at #728, thanks.

@lovell lovell closed this as completed May 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants