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

Return early from BoxBlur if either width or height is zero #8347

Merged
merged 1 commit into from
Sep 5, 2024

Conversation

radarhere
Copy link
Member

Resolves #8346

If the resulting image has either a zero width or zero height, then the Box Blur will clearly have no effect on the output, and the empty image can be returned early.

@hugovk hugovk merged commit 965cb51 into python-pillow:main Sep 5, 2024
48 of 49 checks passed
@radarhere radarhere deleted the boxblur branch September 5, 2024 08:24
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.

Segfault if you blur an image with zero width xor zero height
2 participants