Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@radarhere
Copy link

@radarhere radarhere commented May 3, 2022

Another suggestion for python-pillow#6254

I can see at https://github.com/python-pillow/Pillow/pull/6254/files that two lines are not covered by the tests.

This should fix that.

benrg and others added 4 commits April 30, 2022 23:06
In modes I and F, Image.point only supported affine expressions of the
forms (lambda x:) x * a, x + a, and x * a + b. Expressions like 1 - x
had to be written x * -1 + 1.

This rewrite, though still limited to affine transformations, supports
far more expression forms, including 1 - x, (2 * x + 1) / 3, etc.
* Removed unused import

* Restored existing checks

* Restored coerce_e, _E and data property

* Deprecated coerce_e

Co-authored-by: Andrew Murray <[email protected]>
benrg pushed a commit that referenced this pull request May 3, 2022
@benrg benrg force-pushed the affine-transform branch from dc9436b to 88f46f3 Compare May 3, 2022 20:43
@benrg
Copy link
Owner

benrg commented May 3, 2022

I manually merged this. Thanks for the help.

@benrg benrg closed this May 3, 2022
@radarhere radarhere deleted the affine-transform branch May 3, 2022 21:59
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.

2 participants