Smartcrop performance can take future advantage of

https://github.com/libvips/libvips/commit/de43eea
This commit is contained in:
Lovell Fuller 2023-04-09 21:17:05 +01:00
parent 7b58ad9360
commit a8645f0f38

View File

@ -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;