Ensure extend op stays sequential when copying px #3928

This commit is contained in:
Lovell Fuller
2024-01-04 09:24:41 +00:00
parent 4aacee8055
commit 9bcf399b4c
3 changed files with 18 additions and 0 deletions

View File

@@ -561,6 +561,7 @@ class PipelineWorker : public Napi::AsyncWorker {
VImage::option()->set("extend", baton->extendWith)->set("background", background));
} else {
std::vector<double> ignoredBackground(1);
image = sharp::StaySequential(image, baton->input->access);
image = nPages > 1
? sharp::EmbedMultiPage(image,
baton->extendLeft, baton->extendTop, baton->width, baton->height,