diff --git a/storage-resize-images/functions/src/resize-image.ts b/storage-resize-images/functions/src/resize-image.ts index e1551f34e6..bc2977b647 100644 --- a/storage-resize-images/functions/src/resize-image.ts +++ b/storage-resize-images/functions/src/resize-image.ts @@ -47,6 +47,7 @@ export function resize(file, size) { return sharp(file, ops) .rotate() .resize(parseInt(width, 10), parseInt(height, 10), { + fit: "inside", withoutEnlargement: true, ...sharpOptions, })