Skip to content

Commit

Permalink
Smartcrop performance can take future advantage of
Browse files Browse the repository at this point in the history
  • Loading branch information
lovell committed Apr 9, 2023
1 parent 7b58ad9 commit a8645f0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/pipeline.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit a8645f0

Please sign in to comment.