From 5578347c194ce08d07344d3322a3c50be003c3d2 Mon Sep 17 00:00:00 2001 From: Simon Harris Date: Wed, 28 Mar 2018 13:43:54 +1100 Subject: [PATCH] dzsave now uses the specified region shrink method --- libvips/foreign/dzsave.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libvips/foreign/dzsave.c b/libvips/foreign/dzsave.c index 36fe02e3..8ed2f596 100644 --- a/libvips/foreign/dzsave.c +++ b/libvips/foreign/dzsave.c @@ -1356,6 +1356,8 @@ strip_shrink( Layer *layer ) Layer *below = layer->below; VipsRegion *from = layer->strip; VipsRegion *to = below->strip; + VipsForeignSaveDz *dz = layer->dz; + VipsRegionShrink region_shrink = dz->region_shrink; VipsRect target; VipsRect source; @@ -1406,7 +1408,7 @@ strip_shrink( Layer *layer ) break; (void) vips_region_shrink( from, to, &target, - VIPS_REGION_SHRINK_MEAN ); + region_shrink ); below->write_y += target.height;