diff --git a/app/services/image.js b/app/services/image.js index 2ad83d5..ea46e51 100644 --- a/app/services/image.js +++ b/app/services/image.js @@ -142,7 +142,14 @@ class ImageService extends SiteService { image.metadata = outputMetadata; try { - let chain = sharpImage.clone().resize({ width: output.width, height: output.height }); + let chain = sharpImage + .clone() + .resize({ + width: output.width, + height: output.height, + options: output.resizeOptions, + }) + ; chain = chain[output.format](output.formatParameters); output.filePath = path.join(imageWorkPath, `${image._id}.${output.width}x${output.height}.${output.format}`);