Docs: fix affine interpolator example

This commit is contained in:
Lovell Fuller
2023-04-22 13:56:33 +01:00
parent 8408e99aa3
commit bf9bb56367
3 changed files with 5 additions and 5 deletions

2
lib/index.d.ts vendored
View File

@@ -356,7 +356,7 @@ declare namespace sharp {
* Perform an affine transform on an image. This operation will always occur after resizing, extraction and rotation, if any.
* You must provide an array of length 4 or a 2x2 affine transformation matrix.
* By default, new pixels are filled with a black background. You can provide a background color with the `background` option.
* A particular interpolator may also be specified. Set the `interpolator` option to an attribute of the `sharp.interpolator` Object e.g. `sharp.interpolator.nohalo`.
* A particular interpolator may also be specified. Set the `interpolator` option to an attribute of the `sharp.interpolators` Object e.g. `sharp.interpolators.nohalo`.
*
* In the case of a 2x2 matrix, the transform is:
* X = matrix[0, 0] * (x + idx) + matrix[0, 1] * (y + idy) + odx