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

ImageDraw.ellipse() with square bounding box doesn't produce circle #463

Closed
gronostajo opened this issue Dec 30, 2013 · 10 comments
Closed
Labels
Bug Any unexpected behavior, until confirmed feature.
Milestone

Comments

@gronostajo
Copy link

gronostajo commented Dec 30, 2013

The code below should produce a circle:

>>> from PIL import Image, ImageDraw
>>> box = (20, 20, 40, 40)
>>> im = Image.new('L', (60, 60), 0)
>>> draw = ImageDraw.Draw(im)
>>> draw.ellipse(box, 255)
>>> im.show()

The result isn't a 20x20 px circle as expected, but 21x20 px ellipse:

test

I'm using Pillow 2.2.2.

@aclark4life
Copy link
Member

Got a pull request to fix this? Any idea where the regression is?

@wiredfool
Copy link
Member

It's at least back to Pillow 1.7.8

@aclark4life
Copy link
Member

Now targeting 2.4.0

@wiredfool wiredfool modified the milestones: Future, 2.4.0 Mar 20, 2014
@hugovk
Copy link
Member

hugovk commented Mar 27, 2014

Reproducible with Pillow 1.76 and PIL 1.1.7 on Python 2.7/Windows.

Reproducible with PIL 1.1.4 on Python 2.3/Windows, the oldest PIL here.

pillow-1 7 6-py2 7 . pil-1 1 7-py2 7 . pil-1 1 4-py2 3

@wiredfool
Copy link
Member

Pointer: related to #367

@aclark4life aclark4life modified the milestones: 2.5.0, Future Apr 1, 2014
@aclark4life
Copy link
Member

2.5.0 time!

@aclark4life
Copy link
Member

What's going on here?

@hugovk
Copy link
Member

hugovk commented Jun 1, 2014

@aclark4life I expect this will be fixed when @Terseus' work is finalised in #610. Currently awaiting further feedback from @wiredfool [https://github.com//pull/610#issuecomment-42601238].

@aclark4life
Copy link
Member

Ah, thanks @hugovk

@aclark4life
Copy link
Member

#610 superseded by #737

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

No branches or pull requests

4 participants