From a8645f0f381558f00b234282d6742697cb5ed194 Mon Sep 17 00:00:00 2001 From: Lovell Fuller Date: Sun, 9 Apr 2023 21:17:05 +0100 Subject: [PATCH] Smartcrop performance can take future advantage of https://github.com/libvips/libvips/commit/de43eea --- src/pipeline.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pipeline.cc b/src/pipeline.cc index ef33dccc..458f30fb 100644 --- a/src/pipeline.cc +++ b/src/pipeline.cc @@ -470,6 +470,7 @@ class PipelineWorker : public Napi::AsyncWorker { image = image.smartcrop(baton->width, baton->height, VImage::option() ->set("interesting", baton->position == 16 ? VIPS_INTERESTING_ENTROPY : VIPS_INTERESTING_ATTENTION) + ->set("premultiplied", shouldPremultiplyAlpha) ->set("attention_x", &attention_x) ->set("attention_y", &attention_y)); baton->hasCropOffset = true;