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

Add support for 1-bit images to ImageOps.invert() #6033

Closed
wants to merge 2 commits into from

Conversation

dov
Copy link
Contributor

@dov dov commented Feb 7, 2022

Currently ImageOps.invert(Img) throws an error when called with a binary image. This pull request fixes that.

@radarhere
Copy link
Member

Hi. I've created PR #6034 as an alternative to this. Rather than adding dedicated code to invert(), I adjust _lut, and so allow for several ImageOps method to support 1 mode images.

@radarhere
Copy link
Member

Since you've determined that #6034 is faster, do you mind if this is closed?

@dov
Copy link
Contributor Author

dov commented Feb 8, 2022

Since you've determined that #6034 is faster, do you mind if this is closed?

Sure. I'm closing it.

@dov dov closed this Feb 8, 2022
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