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

Allow alpha_composite destination to be negative #5313

Merged
merged 3 commits into from Mar 8, 2021

Conversation

radarhere
Copy link
Member

Resolves #5298

The issue argues that since you are able to paste() to negative co-ordinates -

offset.paste(over, (-64, -64))

you should also be able to alpha_composite() to negative co-ordinates -

offset.alpha_composite(over, (-64, -64))

The argument seems reasonable to me.

Copy link
Member

@hugovk hugovk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's also add to release notes

@hugovk hugovk added the automerge Automatically merge PRs that are ready label Mar 8, 2021
@mergify mergify bot merged commit e110e09 into python-pillow:master Mar 8, 2021
@radarhere radarhere deleted the alpha_composite branch March 8, 2021 20:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge Automatically merge PRs that are ready
Projects
None yet
Development

Successfully merging this pull request may close these issues.

alpha_composite should be like paste and allow negative destinations
2 participants