Learn Before
Resizing Images (Pillow)
Resampling Filters (Pillow)
There are multiple resampling filters supported by Pillow.
- PIL.Image.NEAREST: Pick the nearest pixel from the input image for the output pixel
- PIL.Image.BOX: Each pixel of the input image contributes to one pixel of the output image equally
- PIL.Image.BILINEAR: Output pixels calculated with linear interpolation
- PIL.Image.HAMMING: Produces a sharper image
- PIL.Image.BICUBIC: Output pixels calculated with cubic interpolation
- PIL.Image.LANCZOS: Output pixels calculated with a high-quality Lanczos filter
0
1
4 years ago
Tags
Python Programming Language
Data Science
Related
Resampling Filters (Pillow)
Learn After
Comparing Resampling Filters (Pillow)