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

@@ -381,7 +381,7 @@ class PipelineWorker : public Nan::AsyncWorker {
vips_enum_from_nick(nullptr, VIPS_TYPE_KERNEL, baton->kernel.data()));
if (
kernel != VIPS_KERNEL_NEAREST && kernel != VIPS_KERNEL_CUBIC && kernel != VIPS_KERNEL_LANCZOS2 &&
kernel != VIPS_KERNEL_LANCZOS3
kernel != VIPS_KERNEL_LANCZOS3 && kernel != VIPS_KERNEL_MITCHELL
) {
throw vips::VError("Unknown kernel");
}