dzsave now uses the specified region shrink method
This commit is contained in:
parent
36076f8294
commit
5578347c19
@ -1356,6 +1356,8 @@ strip_shrink( Layer *layer )
|
|||||||
Layer *below = layer->below;
|
Layer *below = layer->below;
|
||||||
VipsRegion *from = layer->strip;
|
VipsRegion *from = layer->strip;
|
||||||
VipsRegion *to = below->strip;
|
VipsRegion *to = below->strip;
|
||||||
|
VipsForeignSaveDz *dz = layer->dz;
|
||||||
|
VipsRegionShrink region_shrink = dz->region_shrink;
|
||||||
|
|
||||||
VipsRect target;
|
VipsRect target;
|
||||||
VipsRect source;
|
VipsRect source;
|
||||||
@ -1406,7 +1408,7 @@ strip_shrink( Layer *layer )
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
(void) vips_region_shrink( from, to, &target,
|
(void) vips_region_shrink( from, to, &target,
|
||||||
VIPS_REGION_SHRINK_MEAN );
|
region_shrink );
|
||||||
|
|
||||||
below->write_y += target.height;
|
below->write_y += target.height;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user