Is there an antialiasing method for Python PIL?

whi picture whi · Jan 16, 2013 · Viewed 18.5k times · Source

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?

Answer

Mark Ransom picture Mark Ransom · Jan 16, 2013

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.