mirror of
https://github.com/lovell/sharp.git
synced 2025-12-19 07:15:08 +01:00
Remove centreSampling option, update some expected test fixtures
See https://github.com/jcupitt/libvips/issues/705
This commit is contained in:
@@ -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")) {
|
||||
|
||||
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user