Switch to libvips' resize, make fastShrinkOnLoad optional (#977)

This commit is contained in:
Jarda Kotěšovec
2017-10-10 20:03:36 +02:00
committed by Lovell Fuller
parent ebc2a741f6
commit d0f66c3734
12 changed files with 67 additions and 95 deletions

View File

@@ -142,6 +142,11 @@ function resize (width, height, options) {
if (is.defined(options.centreSampling)) {
this._setBooleanOption('centreSampling', options.centreSampling);
}
// Shrink on load
if (is.defined(options.fastShrinkOnLoad)) {
this._setBooleanOption('fastShrinkOnLoad', options.fastShrinkOnLoad);
}
}
return this;
}