From afce6e54ba6b73b438a09304aca6e20e81700791 Mon Sep 17 00:00:00 2001 From: Johann Pinson Date: Fri, 16 Feb 2018 15:03:04 +0100 Subject: [PATCH] feat(resize): the force option make a crop to fit the new size --- src/handler.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() }