We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 03ea3c8 commit 08afa3fCopy full SHA for 08afa3f
storage-resize-images/functions/src/resize-image.ts
@@ -47,6 +47,7 @@ export function resize(file, size) {
47
return sharp(file, ops)
48
.rotate()
49
.resize(parseInt(width, 10), parseInt(height, 10), {
50
+ fit: "inside",
51
withoutEnlargement: true,
52
...sharpOptions,
53
})
0 commit comments