Drawing methods edges aren't smooth
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Anfängerfreundlichkeit
- 25/100
- Issue-Typ
- Feature
- Klarheit
- Muss geklärt werden
- Aktivitätsstatus
- Veraltet
- Tech-Stack
- python
- Bereich
- computer-graphics
Rechercherichtung
Start with Pillow's drawing methods, especially the .ellipse() entry point described in the issue, and compare its edges with the existing Image.ANTIALIAS resize approach. Determine the intended antialiasing behavior for curves and lines, then validate the result against the reported pixelation example and define coverage for other drawing methods.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Originally posted by @radarhere in https://github.com/python-pillow/Pillow/issues/4895#issuecomment-1013763728
@DeusAres could you create a new issue with more detail?
In general the drawing methods don't have an antialiasing method, meaning that curves and lines that aren't straight are affected by pixelation:
I'm asking if there will be an implemention, like kerneling the drawn figures with methods such gaussian blur and to apply antialiasing so super-sampling can be avoided
The way that I use to superSample is to resize N times (2<=N<=8) the width and height and resize it back with Image.ANTIALIAS resampling
Taking this image in account:

It's a simple circle using .ellipse() method on a 1000x1000 canvas but the edges aren't smooth because of the pixelation. The bigger the figure the less it's noticeable of course but that isn't the way to solve the issue
- Vorherrschende Sprache
- Python
- Sterne
- 14k
- Forks
- 2.6k
- Ø Merge
- 1 T. 1 Std.
- Gemergte PRs (30 T.)
- 205
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus python-pillow/Pillow
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
python-pillow/Pillow#10590 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Image.thumbnail() raises ZeroDivisionError when the target height is 0Evtl. vergeben Ein verknüpfter Pull Request ist offen oder bereits gemergt. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 70/100
python-pillow/Pillow#10589 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Sun raster files with RLE encoding and odd-width rows decode shiftedEvtl. vergeben @PerryLink hat das vor 21 Tagen übernommen. Offen🤖-assisted
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
python-pillow/Pillow#10370 · 3 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
-
Warn that pre-applying arabic_reshaper + python-bidi corrupts text on a Raqm buildEvtl. vergeben @Syamjith-NK hat das vor 85 Tagen übernommen. OffenDocumentation Font Rendering PNG Third Party Framework
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
python-pillow/Pillow#9907 · 3 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
-
Example code in ImageText documentation makes incorrect use of get_bbox()Evtl. vergeben @mmporong hat das vor 1 Tag übernommen. OffenDocumentation
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 25/100
python-pillow/Pillow#10583 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in python-pillow/Pillow
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
vllm-project/vllm#69304 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
interpreter-core type-bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 62/100
Maintainer antworten meist innerhalb von 1 Tag
-
pydanty:is-working
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
pydantic/pydantic-ai#14187 ·
Maintainer antworten meist innerhalb von 1 Tag
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 62/100
Maintainer antworten meist innerhalb von 1 Tag
-
test
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 62/100
prebid/salesagent#2676 ·
Maintainer antworten meist innerhalb von 1 Tag