From 1d6ef630a5b1aaf96e916f72e7b52a47309ccc29 Mon Sep 17 00:00:00 2001 From: Lovell Fuller Date: Tue, 14 Apr 2020 21:24:26 +0100 Subject: [PATCH] Docs: extract might also be referred to as 'crop' --- docs/api-resize.md | 2 +- lib/resize.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/api-resize.md b/docs/api-resize.md index 71438b4b..a976aebe 100644 --- a/docs/api-resize.md +++ b/docs/api-resize.md @@ -166,7 +166,7 @@ Returns **Sharp** ## extract -Extract a region of the image. +Extract/crop a region of the image. - Use `extract` before `resize` for pre-resize extraction. - Use `extract` after `resize` for post-resize extraction. diff --git a/lib/resize.js b/lib/resize.js index f03ce480..aa86a80a 100644 --- a/lib/resize.js +++ b/lib/resize.js @@ -336,7 +336,7 @@ function extend (extend) { } /** - * Extract a region of the image. + * Extract/crop a region of the image. * * - Use `extract` before `resize` for pre-resize extraction. * - Use `extract` after `resize` for post-resize extraction.