Only try to connect discontiguous corners at the end of edges#6303
Only try to connect discontiguous corners at the end of edges#6303radarhere merged 2 commits intopython-pillow:mainfrom
Conversation
|
Hi there, I ran across the scanline issue fixed in this PR myself. Reverting back to 9.0.0 worked fine for me as a fix since I didn't have an issue with the corner points which was the original motivation for these changes. I did notice however that I was also seeing spurious white "fill" points outside the polygon outline. (The spurious points would also appear in some images that don't contain the scanlines.) I'm not sure if that was also fixed in this PR, but thought I'd mention it just in case. The data points for the following polygon image are below just in case it's worth checking out. Thanks!
|




Resolves #6290
During drawing, #5980 moves a point to join discontiguous corners to the rest of the shape. However, this has been applied too thoroughly, and in #6290, the attempt to join pixels together has ended up dragging pixels from the left hand side of the polygon all the way to the right, creating a gap instead.
Adding a condition to only try and join discontiguous corners at the end of edges fixes the problem.