ANTIALIAS vs BICUBIC in PIL(Python Image Library)?

后端 未结 2 1677
醉酒成梦
醉酒成梦 2021-01-05 04:52

I am using PIL to resize my images, my case is to scale up the original image.

I am confused about the algorithm used with `resample=ANTIALIAS\'.

According t

2条回答
  •  感情败类
    2021-01-05 05:09

    These are listed in order of lowest to higest complexity. There will be visual differences between them. The main difference will be how long the algorithm takes to execute.

    You'll have to decide what matters more to you, speed, or quality. If you're only doing 5 images, go for quality. If you're doing 100,000 images, maybe go for speed. It really depends on what you're using it for.

    The 2x2 and 4x4 environment means that the algorithm looks at a 2x2 or 4x4 area of pixels.

提交回复
热议问题