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

Round down the radius in rounded_rectangle #5382

Merged
merged 1 commit into from
Apr 7, 2021

Conversation

radarhere
Copy link
Member

Resolves #5381

The issue has found a problem when rounded_rectangle has a non-integer radius. This PR resolves it by rounding the radius down.

For the record, here is what the images created by the new test look like without the fix.

imagedraw_rounded_rectangle_non_integer_radius_given
imagedraw_rounded_rectangle_non_integer_radius_width
imagedraw_rounded_rectangle_non_integer_radius_height

@radarhere radarhere added the Bug Any unexpected behavior, until confirmed feature. label Apr 4, 2021
@hugovk hugovk merged commit 75c1119 into python-pillow:master Apr 7, 2021
@radarhere radarhere deleted the rounded_rectangle branch April 7, 2021 21:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Any unexpected behavior, until confirmed feature.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Rounded rectangle corners got an offset
2 participants