Skip to content

Do not draw line or arc if width is zero#9589

Open
radarhere wants to merge 1 commit intopython-pillow:mainfrom
radarhere:draw_width
Open

Do not draw line or arc if width is zero#9589
radarhere wants to merge 1 commit intopython-pillow:mainfrom
radarhere:draw_width

Conversation

@radarhere
Copy link
Copy Markdown
Member

@radarhere radarhere commented Apr 27, 2026

ImageDraw functions that fill and outline shapes skip the outline if the width is zero.

if ink is not None and ink != fill_ink and width != 0:

This PR also skips the draw operation within line() or arc() if the width is zero.

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.

1 participant