Ensure multi-page extract remains sequential #3837

This commit is contained in:
Lovell Fuller
2023-11-01 13:54:33 +00:00
parent 159b986cdd
commit 655da113c8
2 changed files with 4 additions and 0 deletions

View File

@@ -370,6 +370,7 @@ namespace sharp {
pages.reserve(nPages);
// Split the image into cropped frames
image = StaySequential(image, VIPS_ACCESS_SEQUENTIAL);
for (int i = 0; i < nPages; i++) {
pages.push_back(
image.extract_area(left, *pageHeight * i + top, width, height));