From cc5ac5385fb51d1badd0644ede17e4d4eab3563b Mon Sep 17 00:00:00 2001 From: Lovell Fuller Date: Fri, 23 Jun 2023 08:08:39 +0100 Subject: [PATCH] Docs: clarify use of extract before composite --- docs/api-composite.md | 2 +- lib/composite.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/api-composite.md b/docs/api-composite.md index 521bdb76..31688e42 100644 --- a/docs/api-composite.md +++ b/docs/api-composite.md @@ -4,7 +4,7 @@ Composite image(s) over the processed (resized, extracted etc.) image. The images to composite must be the same size or smaller than the processed image. If both `top` and `left` options are provided, they take precedence over `gravity`. -Any resize or rotate operations in the same processing pipeline +Any resize, rotate or extract operations in the same processing pipeline will always be applied to the input image before composition. The `blend` option can be one of `clear`, `source`, `over`, `in`, `out`, `atop`, diff --git a/lib/composite.js b/lib/composite.js index f2060066..910cc5c1 100644 --- a/lib/composite.js +++ b/lib/composite.js @@ -46,7 +46,7 @@ const blend = { * The images to composite must be the same size or smaller than the processed image. * If both `top` and `left` options are provided, they take precedence over `gravity`. * - * Any resize or rotate operations in the same processing pipeline + * Any resize, rotate or extract operations in the same processing pipeline * will always be applied to the input image before composition. * * The `blend` option can be one of `clear`, `source`, `over`, `in`, `out`, `atop`,