diff --git a/packages/tiler-sharp/src/index.ts b/packages/tiler-sharp/src/index.ts index 6ae79bcf1..be062ea84 100644 --- a/packages/tiler-sharp/src/index.ts +++ b/packages/tiler-sharp/src/index.ts @@ -144,7 +144,11 @@ export class TileMakerSharp implements TileMaker { if (resize) { const resizeOptions = { fit: Sharp.fit.cover, kernel: resize.scaleX > 1 ? resizeKernel.in : resizeKernel.out }; - sharp.resize(resize.width, resize.height, resizeOptions); + if (resize.scale <= 0.1251) { + sharp.resize(resize.width, resize.height, { ...resizeOptions, fastShrinkOnLoad: false }); + } else { + sharp.resize(resize.width, resize.height, resizeOptions); + } } if (crop) sharp.extract({ top: crop.y, left: crop.x, width: crop.width, height: crop.height });