Is there an antialiasing method for Python PIL?

前端 未结 2 1119
孤街浪徒
孤街浪徒 2020-12-10 01:47

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 li

2条回答
  •  一向
    一向 (楼主)
    2020-12-10 02:08

    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.

提交回复
热议问题