We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I'd sure like a function that looks like ImageOps.pad https://pillow.readthedocs.io/en/stable/_modules/PIL/ImageOps.html#pad
but just returns the image after resizing without adding the padding.
What would be a good name for such a function? Where would it best be placed?
ImageOps.fit is already taken.
EDIT: Looking at #3364 contain seems like a decent candidate. Seems a refactor would be required. @radarhere thoughts?
contain
The text was updated successfully, but these errors were encountered:
I've created #5417, going with contain. Let us know if you have any thoughts.
Sorry, something went wrong.
Seems good, honestly fit would have been a better choice, but that's already taken. And fit should have been called fill
fit
fill
Successfully merging a pull request may close this issue.
I'd sure like a function that looks like ImageOps.pad
https://pillow.readthedocs.io/en/stable/_modules/PIL/ImageOps.html#pad
but just returns the image after resizing without adding the padding.
What would be a good name for such a function? Where would it best be placed?
ImageOps.fit is already taken.
EDIT: Looking at #3364
contain
seems like a decent candidate. Seems a refactor would be required. @radarhere thoughts?The text was updated successfully, but these errors were encountered: