Add support for the "mitchell" kernel for image reductions (#1438)

This commit is contained in:
Daiz
2018-10-28 17:11:27 +02:00
committed by Lovell Fuller
parent 95ef6b3f71
commit 1fa388370e
6 changed files with 13 additions and 2 deletions

View File

@@ -30,6 +30,7 @@ Possible interpolation kernels are:
- `nearest`: Use [nearest neighbour interpolation][4].
- `cubic`: Use a [Catmull-Rom spline][5].
- `mitchell`: Use a [Mitchell-Netravali spline][13].
- `lanczos2`: Use a [Lanczos kernel][6] with `a=2`.
- `lanczos3`: Use a Lanczos kernel with `a=3` (the default).
@@ -230,3 +231,5 @@ Returns **Sharp**
[11]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean
[12]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Error
[13]: https://www.cs.utexas.edu/~fussell/courses/cs384g-fall2013/lectures/mitchell/Mitchell.pdf

View File

@@ -10,6 +10,10 @@ Requires libvips v8.7.0.
[#1422](https://github.com/lovell/sharp/pull/1422)
[@SethWen](https://github.com/SethWen)
* Add support for the "mitchell" kernel for image reductions.
[#1438](https://github.com/lovell/sharp/pull/1438)
[@Daiz](https://github.com/Daiz)
#### v0.21.0 - 4<sup>th</sup> October 2018
* Deprecate the following resize-related functions: