Skip to content

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

Merged
hugovk merged 1 commit intopython-pillow:mainfrom
radarhere:boxblur
Sep 5, 2024
Merged

Return early from BoxBlur if either width or height is zero#8347
hugovk merged 1 commit intopython-pillow:mainfrom
radarhere:boxblur

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
@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