For lines and ellipses in PIL, the images are rough.
I found antialiasing only in resize and thumbnail.
Is there any way to do antialiasing when drawing a line or ellipse?
The only way to do it natively is with supersampling. Render your image at a multiple of the size you require, then resize
it with filter=Image.ANTIALIAS
.