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 db3e4d1 commit b6a77d9Copy full SHA for b6a77d9
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