mirror of
https://github.com/lovell/sharp.git
synced 2026-02-08 23:56:16 +01:00
Smartcrop performance can take future advantage of
https://github.com/libvips/libvips/commit/de43eea
This commit is contained in:
@@ -470,6 +470,7 @@ class PipelineWorker : public Napi::AsyncWorker {
|
|||||||
|
|
||||||
image = image.smartcrop(baton->width, baton->height, VImage::option()
|
image = image.smartcrop(baton->width, baton->height, VImage::option()
|
||||||
->set("interesting", baton->position == 16 ? VIPS_INTERESTING_ENTROPY : VIPS_INTERESTING_ATTENTION)
|
->set("interesting", baton->position == 16 ? VIPS_INTERESTING_ENTROPY : VIPS_INTERESTING_ATTENTION)
|
||||||
|
->set("premultiplied", shouldPremultiplyAlpha)
|
||||||
->set("attention_x", &attention_x)
|
->set("attention_x", &attention_x)
|
||||||
->set("attention_y", &attention_y));
|
->set("attention_y", &attention_y));
|
||||||
baton->hasCropOffset = true;
|
baton->hasCropOffset = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user