Ensure extend op is sequential for multi-page TIFF #4069

This commit is contained in:
Lovell Fuller
2024-04-18 11:05:04 +01:00
parent 52b9dc0f63
commit 397ee492d9
3 changed files with 37 additions and 14 deletions

View File

@@ -566,6 +566,7 @@ class PipelineWorker : public Napi::AsyncWorker {
std::vector<double> background;
std::tie(image, background) = sharp::ApplyAlpha(image, baton->extendBackground, shouldPremultiplyAlpha);
image = sharp::StaySequential(image, baton->input->access, nPages > 1);
image = nPages > 1
? sharp::EmbedMultiPage(image,
baton->extendLeft, baton->extendTop, baton->width, baton->height,