diff --git a/src/handler.ts b/src/handler.ts index 02d7a65..8f254d5 100644 --- a/src/handler.ts +++ b/src/handler.ts @@ -107,7 +107,7 @@ export default callbackRuntime(async (event: APIGatewayEvent) => { stream.resize(config.resize.width, config.resize.height) if (config.resize.force) { - stream.ignoreAspectRatio() + stream.crop() } else { stream.max() }