This parameter allows you to specify the interpolation method to use when resizing images. If not specified, the default is
When reducing the size of an image (or downsampling), some image data is simply discarded. However when increasing image dimensions, the image is expanded and gaps must be “filled in”. Each interpolation filter uses a different algorithm for determining how to fill the gaps.
The simplest approach to interpolation. Rather than calculating an average value by some weighting criteria or generating an intermediate value based on complicated rules, this method simply determines the “nearest” neighbouring pixel, and assumes the intensity value of it.
Considers the closest two pixels and takes a weighted average to arrive at its final interpolated value. Results in a much smoother image than
Images resampled with cubic interpolation are smoother and have fewer interpolation artifacts, but processing is slower than with
Tends to reduce aliasing artifacts and preserve sharp edges. It has been considered the “best compromise” among several simple filters for this purpose.
See something to improve? Edit in Github.