mirror of
https://github.com/lovell/sharp.git
synced 2025-07-09 18:40:16 +02:00
Smartcrop performance can take future advantage of
https://github.com/libvips/libvips/commit/de43eea
This commit is contained in:
parent
7b58ad9360
commit
a8645f0f38
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user