enable vipsAffine to use Extend option value and send it to lipvips

this will change the default from the one that lipvips use which is `background` to the ones that bimg use which is  `C.VIPS_EXTEND_BLACK`
but because the lip add extra 1 or .5 pix the background is considered black anyway so this will not affect anyone
but will fix the bug of having border on the right and bottom of some images

[ch15924]
This commit is contained in:
Eslam Mahmoud 2019-11-15 10:08:31 -06:00 committed by Matt Drollette
parent daafbf6d97
commit cd2783eff0
3 changed files with 9 additions and 5 deletions

4
vips.h
View file

@ -102,8 +102,8 @@ vips_enable_cache_set_trace() {
}
int
vips_affine_interpolator(VipsImage *in, VipsImage **out, double a, double b, double c, double d, VipsInterpolate *interpolator) {
return vips_affine(in, out, a, b, c, d, "interpolate", interpolator, NULL);
vips_affine_interpolator(VipsImage *in, VipsImage **out, double a, double b, double c, double d, VipsInterpolate *interpolator, int extend) {
return vips_affine(in, out, a, b, c, d, "interpolate", interpolator, "extend", extend, NULL);
}
int