From 573836e2b8d9ecbc922bfc1984063ab30d8acc15 Mon Sep 17 00:00:00 2001 From: Tony Mobily Date: Sat, 13 Jan 2018 17:59:59 +0800 Subject: [PATCH] Add mention of max() to preserve ratio in withoutEnlargement (#1077) --- lib/resize.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/resize.js b/lib/resize.js index 6d1775bd..e4a8e2aa 100644 --- a/lib/resize.js +++ b/lib/resize.js @@ -253,6 +253,7 @@ function ignoreAspectRatio () { * Do not enlarge the output image if the input image width *or* height are already less than the required dimensions. * This is equivalent to GraphicsMagick's `>` geometry option: * "*change the dimensions of the image only if its width or height exceeds the geometry specification*". + * Use with `max()` to preserve the image's aspect ratio. * * The default behaviour *before* function call is `false`, meaning the image will be enlarged. *