Remove centreSampling option, update some expected test fixtures

See https://github.com/jcupitt/libvips/issues/705
This commit is contained in:
Lovell Fuller
2017-11-26 13:49:48 +00:00
parent 6aa214181b
commit 2a18b9a8f7
19 changed files with 7 additions and 55 deletions

View File

@@ -381,8 +381,7 @@ class PipelineWorker : public Nan::AsyncWorker {
image = image.resize(1.0 / xfactor, VImage::option()
->set("vscale", 1.0 / yfactor)
->set("kernel", kernel)
->set("centre", baton->centreSampling));
->set("kernel", kernel));
}
// Rotate
@@ -1143,7 +1142,6 @@ NAN_METHOD(pipeline) {
baton->withoutEnlargement = AttrTo<bool>(options, "withoutEnlargement");
baton->crop = AttrTo<int32_t>(options, "crop");
baton->kernel = AttrAsStr(options, "kernel");
baton->centreSampling = AttrTo<bool>(options, "centreSampling");
baton->fastShrinkOnLoad = AttrTo<bool>(options, "fastShrinkOnLoad");
// Join Channel Options
if (HasAttr(options, "joinChannelIn")) {

View File

@@ -67,7 +67,6 @@ struct PipelineBaton {
int cropOffsetTop;
bool premultiplied;
std::string kernel;
bool centreSampling;
bool fastShrinkOnLoad;
double background[4];
bool flatten;
@@ -150,7 +149,6 @@ struct PipelineBaton {
cropOffsetLeft(0),
cropOffsetTop(0),
premultiplied(false),
centreSampling(false),
flatten(false),
negate(false),
blurSigma(0.0),