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

Determine mask mode in Python instead of C #7548

Merged
merged 1 commit into from Dec 21, 2023

Conversation

radarhere
Copy link
Member

A minor cleanup.

At the moment, getmask2 passes mode to the C method font_render, which determines if the image should be RGBA or L, and then passes that final mode back to Python.

The C method font_render doesn't change the value of the mode variable passed into it though, so rather than passing an extra piece of information back to Python, the mode can just be set in the Python layer.

@hugovk hugovk merged commit b638d05 into python-pillow:main Dec 21, 2023
58 checks passed
@radarhere radarhere deleted the imagefont branch December 21, 2023 10:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants