From ebae68d579bc993f534707d52474cc27c8916372 Mon Sep 17 00:00:00 2001 From: Lovell Fuller Date: Sat, 13 Jan 2018 10:27:43 +0000 Subject: [PATCH] Doc refresh for #1077 --- docs/api-resize.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/api-resize.md b/docs/api-resize.md index 77a62479..8409b018 100644 --- a/docs/api-resize.md +++ b/docs/api-resize.md @@ -163,6 +163,7 @@ Returns **Sharp** 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.